@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 |
booleanValue
The default
boolean value if this annotation is used on a method. |
byte |
byteValue
The default boolean value if this annotation is used on a method.
|
char |
charValue
The default
byte value if this annotation is used on a method. |
Class<?> |
classValue
The default
Class value if this annotation is used on a method. |
double |
doubleValue
The default
double value if this annotation is used on a method. |
float |
floatValue
The default
float value if this annotation is used on a method. |
int |
intValue
The default
int value if this annotation is used on a method. |
long |
longValue
The default
long value if this annotation is used on a method. |
String |
name
The property name.
|
short |
shortValue
The default
short value if this annotation is used on a method. |
String |
stringValue
The default
String value 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.