org.jboss.aop
Class JoinPointInfo

java.lang.Object
  extended by org.jboss.aop.JoinPointInfo
All Implemented Interfaces:
JoinPointBean
Direct Known Subclasses:
CallerConstructorInfo, CallerMethodInfo, ConstructionInfo, ConstructorInfo, FieldInfo, MethodInfo

public abstract class JoinPointInfo
extends Object
implements JoinPointBean


Field Summary
protected  WeakReference<Class<?>> clazz
           
 Interceptor[] interceptors
          Deprecated. Use the accessors. Only public for backwards compatiblity with EJB3
protected  Joinpoint joinpoint
           
 
Constructor Summary
protected JoinPointInfo()
           
protected JoinPointInfo(Advisor advisor, Class<?> clazz)
           
protected JoinPointInfo(JoinPointInfo other)
           
 
Method Summary
protected  void clear()
           
 void cloneChains(JoinPointInfo other)
           
abstract  JoinPointInfo copy()
           
 boolean equalChains(Interceptor[] otherInterceptors)
           
 String getAdviceString()
           
 Advisor getAdvisor()
          Gets the advisor
 Class<?> getClazz()
          Gets the advisor's class
 ArrayList<Interceptor> getInterceptorChain()
           
 ReentrantReadWriteLock getInterceptorChainReadWriteLock()
           
 Interceptor[] getInterceptors()
           
 Joinpoint getJoinpoint()
           
 boolean hasAdvices()
           
protected abstract  Joinpoint internalGetJoinpoint()
           
protected  void resetChainKeepInterceptors()
           
protected  void resetInterceptors()
           
<T extends Annotation>
T
resolveAnnotation(Class<T> annotation)
          Resolves annotations on the particular joinpoint (field, constructor, method etc.)
<T extends Annotation>
T
resolveClassAnnotation(Class<T> annotation)
          Resolves annotations for the class
 Object resolveClassMetaData(Object key, Object attr)
          Resolves metadata on the class
 void setAdvisor(Advisor advisor)
           
 void setInterceptors(Interceptor[] interceptors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interceptors

public Interceptor[] interceptors
Deprecated. Use the accessors. Only public for backwards compatiblity with EJB3

joinpoint

protected volatile Joinpoint joinpoint

clazz

protected WeakReference<Class<?>> clazz
Constructor Detail

JoinPointInfo

protected JoinPointInfo()

JoinPointInfo

protected JoinPointInfo(Advisor advisor,
                        Class<?> clazz)

JoinPointInfo

protected JoinPointInfo(JoinPointInfo other)
Method Detail

clear

protected void clear()

resetChainKeepInterceptors

protected void resetChainKeepInterceptors()

resetInterceptors

protected void resetInterceptors()

getAdvisor

public Advisor getAdvisor()
Description copied from interface: JoinPointBean
Gets the advisor

Specified by:
getAdvisor in interface JoinPointBean

getClazz

public Class<?> getClazz()
Description copied from interface: JoinPointBean
Gets the advisor's class

Specified by:
getClazz in interface JoinPointBean

setAdvisor

public void setAdvisor(Advisor advisor)

hasAdvices

public boolean hasAdvices()

equalChains

public boolean equalChains(Interceptor[] otherInterceptors)

getJoinpoint

public Joinpoint getJoinpoint()

getInterceptorChain

public ArrayList<Interceptor> getInterceptorChain()

getInterceptors

public Interceptor[] getInterceptors()

setInterceptors

public void setInterceptors(Interceptor[] interceptors)

internalGetJoinpoint

protected abstract Joinpoint internalGetJoinpoint()

copy

public abstract JoinPointInfo copy()

resolveClassMetaData

public Object resolveClassMetaData(Object key,
                                   Object attr)
Description copied from interface: JoinPointBean
Resolves metadata on the class

Specified by:
resolveClassMetaData in interface JoinPointBean

resolveClassAnnotation

public <T extends Annotation> T resolveClassAnnotation(Class<T> annotation)
Description copied from interface: JoinPointBean
Resolves annotations for the class

Specified by:
resolveClassAnnotation in interface JoinPointBean

resolveAnnotation

public <T extends Annotation> T resolveAnnotation(Class<T> annotation)
Description copied from interface: JoinPointBean
Resolves annotations on the particular joinpoint (field, constructor, method etc.)

Specified by:
resolveAnnotation in interface JoinPointBean

cloneChains

public void cloneChains(JoinPointInfo other)

getAdviceString

public String getAdviceString()

getInterceptorChainReadWriteLock

public final ReentrantReadWriteLock getInterceptorChainReadWriteLock()


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.