|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
weblogic.descriptor.annotation.GlobalAnnotations
weblogic.descriptor.annotation.PropertyAnnotations
public class PropertyAnnotations
Defines annotations that can be specified in a getter or setter method comment to contribute to the defintion of a bean property.
Field Summary | |
---|---|
static AnnotationDefinition |
AGGREGATE Indicates that the annotated property is an aggregate of other child properties defined in the containing bean. |
static AnnotationDefinition |
COMPONENT_NAME Explicitly specifies the component name of the annotated array property. |
static AnnotationDefinition |
DEFAULT Specifies the default value for the annotated property. |
static AnnotationDefinition |
DEFERRED_VALIDATOR Specifies a custom method to be called as part of on-demand validation for the bean that defined the annotated property. |
static AnnotationDefinition |
DERIVED_DEFAULT Specifies an expression from which to derive the default value for the annotated property. |
static AnnotationDefinition |
ENUMERATION Indicates the set of String constants that the annotated String property is constrained to. |
static AnnotationDefinition |
INITIALIZER Specifies the initial value to be persisted for the annotated property. |
static AnnotationDefinition |
KEY Indicates that the value of the annotated property acts as the unique key for this bean. |
static AnnotationDefinition |
KEY_CHOICE Indicates that the value of the annotated property may act as a unique key for this bean. |
static AnnotationDefinition |
KEY_COMPONENT Indicates that the value of the annotated property act as one component in a compound key for this bean. |
static AnnotationDefinition |
LEGAL_MAX Specifies the maximum value allowed for the annotated property. |
static AnnotationDefinition |
LEGAL_MIN Specifies the minimum value allowed for the annotated property. |
static AnnotationDefinition |
LEGAL_ZERO_LENGTH Specifies whether the annotated string property may have a zero length. |
static AnnotationDefinition |
MERGERULE This annotation is used to define mergeRules for descriptor merging. |
static AnnotationDefinition |
META_DATA Deprecated. |
static AnnotationDefinition |
NULLABLE Indicates whether the annotated String property may have a null value. |
static AnnotationDefinition |
PREPROCESSOR This annotation is useful for introducing a pre-processing steps in the setter before the value is actually set to the property. |
static AnnotationDefinition |
PRESERVE_WHITE_SPACE Specifies that whitespace in the value of the annotated String (or String[]) property be preserved. |
static AnnotationDefinition |
PRODUCTION_DEFAULT Specifies the default value for the annotated property when used in production mode. |
static AnnotationDefinition |
REFERENCE Indicates that the bean(s) held by this property is a reference rather than a child. |
static AnnotationDefinition |
REMOVE_VALIDATOR Specifies a custom method to be called to validate the remove of a reference property or destroy of child property. |
static AnnotationDefinition |
REQUIRED Indicates whether the annotated property must be assigned an explicit value. |
static AnnotationDefinition |
TRANSIENT Indicates that the annotated property is not persisted. |
static AnnotationDefinition |
UN_SET_VALUE Can be used with @legalValues to specify a value that would we returned in case the property is not set, or can be used with a setter to mark the property to unset Usage: @unSetValue someValue |
static AnnotationDefinition |
VALIDATE_PROPERTY_DECLARATION Deprecated. |
static AnnotationDefinition |
VALIDATOR Specifies a custom method to be called to validate the annotated property. |
static AnnotationDefinition |
XML_ELEMENT_NAME Explictly specifies the xml element name to be used in the schema definition for the annotated property. |
Fields inherited from class weblogic.descriptor.annotation.GlobalAnnotations |
---|
CONFIGURABLE, DYNAMIC, EXCLUDE, OBSOLETE, OWNER, ROLE_ALLOWED, ROLE_EXCLUDED, ROLE_PERMIT_ALL, VISIBLE_TO_PARTITION |
Method Summary | |
---|---|
static AnnotationDefinition |
getAnnotationDefinition(String alias) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final AnnotationDefinition AGGREGATE
The default algorithm for computing the component name is as follows:
See weblogic.descriptor.example.ExampleRootBean#getChildren
for an example use of this annotation.
Usage: @componentName "componentName"
Usage: @wld:property componentname="O_i_componentName__i_"
public static final AnnotationDefinition COMPONENT_NAME
The default algorithm for computing the component name is as follows:
See weblogic.descriptor.example.ExampleRootBean#getChildren
for an example use of this annotation.
Usage: @componentName "componentName"
Usage: @wld:property componentname="O_i_componentName__i_"
public static final AnnotationDefinition DEFAULT
Default: The default value for a primitive property (when this annotation is not present) is specified by JLS Initial Values of Variables. The default value for a String property is null.
Usage: @default value
Usage: @wld:property default = value
public static final AnnotationDefinition DERIVED_DEFAULT
Usage: @derivedDefault getterExpression
Usage: @wld:property derivedDefaut = getterExpression
public static final AnnotationDefinition PRODUCTION_DEFAULT
Default: Value specified by PropertyAnnotations.DEFAULT
annotation
Usage: @productionDefault value
Usage: @production-mode-default value
Usage: @wld:property productionDefault = value
PropertyAnnotations.DEFAULT
public static final AnnotationDefinition INITIALIZER
PropertyAnnotations.REQUIRED
to initialize a property that must appear in the XML document.
Note that this annotation is different than PropertyAnnotations.DEFAULT
in that it specifies a value to be written while default specifies a value to be used if none has been explicitly set.
Usage: @initializer expression
Usage: @wld:property initializer = expression
public static final AnnotationDefinition VALIDATOR
public static void methodName(ParamType param) throws IllegalArgumentException;
See weblogic.descriptor.example.ExampleValidationBean#setURI
for an example use of this annotation and weblogic.descriptor.example.ExampleCustomValidator#validateURI
for an example of a validator method.
Usage: @validator validatorMethod
Usage: @wld:property validator = validatorMethod The validator can have parameters. Keyword "self" is replaced by bean instance 'this' & "value" is replaced by the value the property is being set to. Also, 'void' is replaced by 'null' and 'customizerField' is replaced by the fieldname of the customizer property is the bean has been customized. Usage: @validator validatorMethod(self, value) In such cases, the validator must be declared apporpriately.
public static void validatorMethod(BeanType bean, PropertyType value) throws IllegalArgumentException;
public static final AnnotationDefinition DEFERRED_VALIDATOR
public static void methodName(BeanType bean);
See weblogic.descriptor.example.ExampleValidationBean#setMinimum
for an example use of this annotation and weblogic.descriptor.example.ExampleCustomValidator#validateMinLessThanMax
for an example of a deferred validator method.
Usage: @deferredValidator validatorMethod
Usage: @wld:property deferredValidator = validatorMethod The validator can have parameters. All the keywords supported on VALIDATOR are supported for this annotation as well, except 'value' is replaced by the getter of the property. See PropertyAnnotations.VALIDATOR
Usage: @deferredValidator validatorMethod(self, value) In such cases, the validator must be declared apporpriately.
public static void validatorMethod(BeanType bean, PropertyType value) throws IllegalArgumentException;
public static final AnnotationDefinition LEGAL_MAX
weblogic.descriptor.example.ExampleValidationBean#setConstrainedInt
for an example use of this annotation.
Usage: @legalMax value
Usage: @wld:property max = value
public static final AnnotationDefinition LEGAL_MIN
weblogic.descriptor.example.ExampleValidationBean#setConstrainedInt
for an example use of this annotation.
Usage: @legalMin value
Usage: @wld:property min = value
public static final AnnotationDefinition LEGAL_ZERO_LENGTH
weblogic.descriptor.example.ExampleValidationBean#setNonEmptyString
for an example use of this annotation.
Default: true
Usage: @legalZeroLength booleanValue
Usage: @wld:property zeroLength = booleanValue
public static final AnnotationDefinition NULLABLE
weblogic.descriptor.example.ExampleValidationBean#setNonNullString
for an example use of this annotation.
Default: false
Usage: @nullable
Usage: @wld:property nullable = booleanValue
Usage: @legalNull
public static final AnnotationDefinition ENUMERATION
weblogic.descriptor.example.ExampleValidationBean#setEnumeratedString
for an example use of this annotation.
Default: By default a String property is not constrained.
Usage: @enumeration = s1,[s2,...,sN]
Usage: @wld:property enumeration = s1,[s2,...,sN]
Usage: @legalValues = s1,[s2,...,sN]
public static final AnnotationDefinition PRESERVE_WHITE_SPACE
Usage: @preserveWhiteSpace
Usage: @wld:property preserveWhiteSpace = booleanValue
public static final AnnotationDefinition REQUIRED
Default: false
Usage: @required
Usage: @wld:property required = booleanValue
public static final AnnotationDefinition KEY
In order to qualify as a key, a property must meet one of the following criteria:
PropertyAnnotations.KEY_CHOICE
and PropertyAnnotations.KEY_COMPONENT
Usage: @key
Usage: @wld:property key = booleanValue
public static final AnnotationDefinition KEY_CHOICE
PropertyAnnotations.KEY
that may be used when one of several bean properties may act as a key. A bean may designate multiple key choices but only if its defintion guarantees that no more that one of these properties will be set on a particular instance of the bean. Whichever property is set on a particular instance will act as the key.
Usage: @keyChoice
Usage: @wld:property keyChoice = booleanValue
public static final AnnotationDefinition KEY_COMPONENT
PropertyAnnotations.KEY
that may be used when a key is made up of multiple porperties. A bean may designate multiple key components. These components are aggregated to produce a single key.
In order to qualify as a key component, a property must meet one of the following criteria:
Usage: @keyComponent
Usage: @wld:property keyComponent = booleanValue
public static final AnnotationDefinition REFERENCE
Usage: @reference
Usage: @wld:property reference = booleanValue
public static final AnnotationDefinition TRANSIENT
DescriptorBean.createChildCopy(java.lang.String, weblogic.descriptor.DescriptorBean)
)Default: false
Usage: @transient
Usage: @wld:property transient = booleanValue
public static final AnnotationDefinition XML_ELEMENT_NAME
PropertyAnnotations.COMPONENT_NAME
if the property is an array of beans. <ii> Inserting a '-' before each capital letter that is preceeded by a lowercase letterUsage: @xmlElementName String
Usage: @wld:property xmlElementName = String
public static final AnnotationDefinition REMOVE_VALIDATOR
public static void methodName(BeanType bean) throws IllegalArgumentException;
See weblogic.descriptor.example.ExampleCustomValidator#validateURI
for an example of a validator method.
Usage: @removeValidator validatorMethod
Usage: @wld:property removeValidator = validatorMethod The remove validator can be parameterized and the annotation supports all the keywords like VALIDATOR. See PropertyAnnotations.VALIDATOR
public static final AnnotationDefinition VALIDATE_PROPERTY_DECLARATION
Usage: @validatePropertyDeclaration booleanValue
Usage: @wld:property validatePropertyDeclaration = booleanValue
public static final AnnotationDefinition UN_SET_VALUE
Usage: @wld:property unSetValue = someValue
public static final AnnotationDefinition PREPROCESSOR
Usage: @preprocessor expression
Usage: @wld:property preprocessor = expression The value of this annotation can have variables that are replaced by appropriate values during code generation. The variable set supported is same as that for VALIDATOR annotation. See PropertyAnnotations.VALIDATOR
Note that as of now this annotation is supported only for String and int properties. This annotation can be applied to array properties as well. Also note that the onus of making sure that the there is no Exception while executing the java expression is on the user of the annotation.
public static final AnnotationDefinition MERGERULE
public static final AnnotationDefinition META_DATA
Method Detail |
---|
public static AnnotationDefinition getAnnotationDefinition(String alias)
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |