@Retention(value=CLASS) @Target(value={PARAMETER,METHOD}) @Repeatable(value=Properties.class) @Documented public @interface Property
If this annotation is placed on a method the name attribute becomes a required parameter and one default attribute needs to be set. The value of the default attribute is used to set the property on the resultant exception object.
| Modifier and Type | Optional Element and Description | 
|---|---|
| boolean | booleanValueThe default  booleanvalue if this annotation is used on a method. | 
| byte | byteValueThe default boolean value if this annotation is used on a method. | 
| char | charValueThe default  bytevalue if this annotation is used on a method. | 
| Class<?> | classValueThe default  Classvalue if this annotation is used on a method. | 
| double | doubleValueThe default  doublevalue if this annotation is used on a method. | 
| float | floatValueThe default  floatvalue if this annotation is used on a method. | 
| int | intValueThe default  intvalue if this annotation is used on a method. | 
| long | longValueThe default  longvalue if this annotation is used on a method. | 
| String | nameThe property name. | 
| short | shortValueThe default  shortvalue if this annotation is used on a method. | 
| String | stringValueThe default  Stringvalue if this annotation is used on a method. | 
public abstract String name
This becomes a required attribute if this annotation is present on a method.
public abstract boolean booleanValue
boolean value if this annotation is used on a method.public abstract byte byteValue
public abstract char charValue
byte value if this annotation is used on a method.public abstract double doubleValue
double value if this annotation is used on a method.public abstract float floatValue
float value if this annotation is used on a method.public abstract int intValue
int value if this annotation is used on a method.public abstract long longValue
long value if this annotation is used on a method.Copyright © 2019 JBoss by Red Hat. All rights reserved.