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

public @Interface ExceptionWrapper

extends Annotation
Annotations
@Documented
@Target:TYPE
@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 messaged ID prefix
idPrefix
()

Return the prefix used in front of the numeric exception ID in the formatter exception message.

public String

Returns:

The logger name.
loggerName
()

Return the logger name to be used for all logged messages generated from the class.

public String

Returns:

The bundle name.
resourceBundle
()

Return the name of the ResourceBundle to use for I18N support for exceptions in this class.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

idPrefixback to summary
public String idPrefix()

Return the prefix used in front of the numeric exception ID in the formatter exception message. For example, CORBA uses IIOP for this purpose.

Returns:String

The log messaged ID prefix

loggerNameback to summary
public String loggerName()

Return the logger name to be used for all logged messages generated from the class. Default is the package in which the class is defined.

Returns:String

The logger name.

resourceBundleback to summary
public String resourceBundle()

Return the name of the ResourceBundle to use for I18N support for exceptions in this class.

Returns:String

The bundle name.