Top Description Methods
org.glassfish.pfl.basic.logex

public @Interface Message

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

This annotation is applied to an interface or abstract class that is used to define methods for logging and/or constructing exceptions.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The log message
value
()

Define the Log message to be generated for this exception.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

Define the Log message to be generated for this exception. The default format is "name: arg1={1} ..." where name is the annotated Method name and each arg is listed after the name. The default format is also used if this annotation is not present.

Returns:String

The log message