Top Description Methods
org.jboss.logging.annotations

public @Interface Param

extends Annotation
Annotations
@Target:PARAMETER
@Retention:CLASS
@Documented
Static Imports
java.lang.annotation.ElementType.PARAMETER, .RetentionPolicy.CLASS

Identifies a parameter is to be used for constructing an exception and excluded from the formatting of the message.

Parameters will be order-matched first, then type-matched to resolve ambiguity. If a match fails an error should occur.

The value() option will allow an optional class to be specified which will have to match the exact type of the parameter in question, to enable unambiguous resolution. The value must be the fully qualified class name.

Author
James R. Perkins

Method Summary

Modifier and TypeMethod and Description
public Class<?>

Returns:

the class the parameter must match.
value
()

Defines an exact class the parameter must match for unambiguous resolution.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Class<?> value()

Defines an exact class the parameter must match for unambiguous resolution.

Returns:Class<?>

the class the parameter must match.