Top Description Methods
org.jboss.logging.annotations

public @Interface ConstructType

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

Indicates the value of this annotation should be constructed and returned. This does not change the return type of the method.

This annotation is only allowed on bundle messages that have a throwable return type. The value must be assignable to the return type.

Author
James R. Perkins
Since
2.0.0

Method Summary

Modifier and TypeMethod and Description
public Class<? extends Throwable>

Returns:

the class to construct
value
()

The actual type that should be constructed for the return type.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Class<? extends Throwable> value()

The actual type that should be constructed for the return type.

Returns:Class<? extends Throwable>

the class to construct