com.composum.platform.models.annotations.PropertyDefaults Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of composum-platform-models-bundle Show documentation
Show all versions of composum-platform-models-bundle Show documentation
Bundle containing features for the general use of Models incl. Sling-Models bundled as a
package
The newest version!
package com.composum.platform.models.annotations;
import com.composum.sling.core.InheritedValues;
import java.lang.annotation.*;
/**
* Defines some defaults that apply to a {@link org.apache.sling.models.annotations.Model} class, mostly used in
* conjunction with {@link Property}.
*
*
CAUTION: this specifies the defaults only for the fields/methods/constructors in the subclasses. If you specify
* this on a class and again on a subclass, the subclass's defaults will not change the behaviour for stuff defined in
* its superclasses.
*
* @author Hans-Peter Stoerr
* @see Property
* @since 09/2017
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface PropertyDefaults {
/** Default for {@link Property#inheritanceType()} for fields/methods/constructors defined in subclasses. */
InheritedValues.Type inheritanceType() default InheritedValues.Type.contentRelated;
/** Default for {@link Property#i18nStrategy()} for fields/methods/constructors defined in subclasses. */
Class extends InternationalizationStrategy> i18nStrategy() default InternationalizationStrategy.NONE.class;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy