org.objectweb.easybeans.deployment.annotations
Class JClassInterceptor

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.JClassInterceptor

public class JClassInterceptor
extends java.lang.Object

This class defines a Bean interceptor with the name of the class and the method which is the interceptor.

Author:
Florent Benoit

Field Summary
private  java.lang.String className
          String name of the class (internal name) where is the interceptor.
private  int id
          Id of this interceptor (0 = no id).
private  JMethod jMethod
          Method with @AroundInvoke annotation.
private static int NO_ID
          NO ID.
 
Constructor Summary
JClassInterceptor(java.lang.String className, JMethod jMethod)
          Constructor.
JClassInterceptor(java.lang.String className, JMethod jMethod, int id)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object another)
          Equals method.
 java.lang.String getClassName()
           
 JMethod getJMethod()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

private java.lang.String className
String name of the class (internal name) where is the interceptor.


jMethod

private JMethod jMethod
Method with @AroundInvoke annotation.


NO_ID

private static final int NO_ID
NO ID.

See Also:
Constant Field Values

id

private int id
Id of this interceptor (0 = no id).

Constructor Detail

JClassInterceptor

public JClassInterceptor(java.lang.String className,
                         JMethod jMethod,
                         int id)
Constructor.

Parameters:
className - String name of the class (internal name).
jMethod - the method with aroundInvoke annotation.
id - the id of this interceptor

JClassInterceptor

public JClassInterceptor(java.lang.String className,
                         JMethod jMethod)
Constructor.

Parameters:
className - String name of the class (internal name).
jMethod - the method with aroundInvoke annotation.
Method Detail

getClassName

public java.lang.String getClassName()
Returns:
class (internal name) where is the interceptor.

getJMethod

public JMethod getJMethod()
Returns:
Method with @AroundInvoke annotation

equals

public boolean equals(java.lang.Object another)
Equals method.

Overrides:
equals in class java.lang.Object
Parameters:
another - object to compare.
Returns:
true if the objects are the same.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
hashCode of the object.