Package org.jboss.logging.annotations
Annotation Type Property
-
@Retention(CLASS) @Target({PARAMETER,METHOD}) @Repeatable(Properties.class) @Documented public @interface Property
Indicate that a method parameter value should be applied to a property (with a setter method) on the resultant exception object.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.
- Author:
- David M. Lloyd, James R. Perkins
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
booleanValue
The defaultboolean
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 defaultbyte
value if this annotation is used on a method.Class<?>
classValue
The defaultClass
value if this annotation is used on a method.double
doubleValue
The defaultdouble
value if this annotation is used on a method.float
floatValue
The defaultfloat
value if this annotation is used on a method.int
intValue
The defaultint
value if this annotation is used on a method.long
longValue
The defaultlong
value if this annotation is used on a method.String
name
The property name.short
shortValue
The defaultshort
value if this annotation is used on a method.String
stringValue
The defaultString
value if this annotation is used on a method.
-
-
-
Element Detail
-
name
String name
The property name. If not specified, the parameter name is assumed to be the property name.This becomes a required attribute if this annotation is present on a method.
- Returns:
- the property name
- Default:
- ""
-
-