org.objectweb.easybeans.deployment.annotations.impl
Class JApplicationException

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.impl.JApplicationException
All Implemented Interfaces:
java.lang.annotation.Annotation, ApplicationException

public class JApplicationException
extends java.lang.Object
implements ApplicationException

Acts as an implementation of @ApplicationException annotation.

Author:
Florent Benoit

Field Summary
private  java.lang.String className
          Name of the class that is flagged as ApplicationException.
static java.lang.String NAME
          Name of this element (Deployment desc).
private  boolean rollback
          Container rollback the transaction ? if an exception is thrown.
 
Constructor Summary
JApplicationException()
          Build an object which represents @ApplicationException annotation.
Default value for rollback is false.
JApplicationException(boolean rollback)
          Build an object which represents @ApplicationException annotation with a given boolean.
JApplicationException(java.lang.String className, boolean rollback)
          Build an object which represents @ApplicationException annotation with a given boolean.
 
Method Summary
 java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
           
 java.lang.String getClassName()
           
 boolean rollback()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.annotation.Annotation
equals, hashCode
 

Field Detail

NAME

public static final java.lang.String NAME
Name of this element (Deployment desc).

See Also:
Constant Field Values

rollback

private boolean rollback
Container rollback the transaction ? if an exception is thrown.


className

private java.lang.String className
Name of the class that is flagged as ApplicationException.

Constructor Detail

JApplicationException

public JApplicationException()
Build an object which represents @ApplicationException annotation.
Default value for rollback is false.


JApplicationException

public JApplicationException(boolean rollback)
Build an object which represents @ApplicationException annotation with a given boolean.

Parameters:
rollback - true/false (false is a default value)

JApplicationException

public JApplicationException(java.lang.String className,
                             boolean rollback)
Build an object which represents @ApplicationException annotation with a given boolean.

Parameters:
className - the name of the class which is the application exception.
rollback - true/false (false is a default value)
Method Detail

rollback

public boolean rollback()
Returns:
the retainIfException value (true/false)

getClassName

public java.lang.String getClassName()
Returns:
the class name.

annotationType

public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
Specified by:
annotationType in interface java.lang.annotation.Annotation
Returns:
annotation type

toString

public java.lang.String toString()
Specified by:
toString in interface java.lang.annotation.Annotation
Overrides:
toString in class java.lang.Object
Returns:
string representation