org.jboss.aop
Class MethodInfo

java.lang.Object
  extended by org.jboss.aop.JoinPointInfo
      extended by org.jboss.aop.MethodInfo
All Implemented Interfaces:
JoinPointBean, MethodExecution

public class MethodInfo
extends JoinPointInfo
implements MethodExecution

This class is here to eliminate a hash lookup in invokeMethod


Field Summary
 Method unadvisedMethod
          Deprecated. Use the accessors. Only public for backwards compatiblity with EJB3
 
Fields inherited from class org.jboss.aop.JoinPointInfo
clazz, interceptors, joinpoint
 
Constructor Summary
MethodInfo()
           
MethodInfo(Class<?> clazz, long hash, long unadvisedHash, Advisor advisor)
           
 
Method Summary
 JoinPointInfo copy()
           
 Method getAdvisedMethod()
          Deprecated. 
 long getHash()
          Gets the hash of the method being called
 Method getMethod()
          Gets the method being called
 Method getUnadvisedMethod()
           
protected  Joinpoint internalGetJoinpoint()
           
<T extends Annotation>
T
resolveAnnotation(Class<T> annotation)
          Resolves annotations on the particular joinpoint (field, constructor, method etc.)
 void setAdvisedMethod(Method advisedMethod)
           
 void setHash(long hash)
           
 void setUnadvisedMethod(Method unadvisedMethod)
           
 String toString()
           
 
Methods inherited from class org.jboss.aop.JoinPointInfo
clear, cloneChains, equalChains, getAdviceString, getAdvisor, getClazz, getInterceptorChain, getInterceptorChainReadWriteLock, getInterceptors, getJoinpoint, hasAdvices, resetChainKeepInterceptors, resetInterceptors, resolveClassAnnotation, resolveClassMetaData, setAdvisor, setInterceptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.aop.joinpoint.JoinPointBean
getAdvisor, getClazz, resolveClassAnnotation, resolveClassMetaData
 

Field Detail

unadvisedMethod

public Method unadvisedMethod
Deprecated. Use the accessors. Only public for backwards compatiblity with EJB3
Constructor Detail

MethodInfo

public MethodInfo()

MethodInfo

public MethodInfo(Class<?> clazz,
                  long hash,
                  long unadvisedHash,
                  Advisor advisor)
Method Detail

internalGetJoinpoint

protected Joinpoint internalGetJoinpoint()
Specified by:
internalGetJoinpoint in class JoinPointInfo

copy

public JoinPointInfo copy()
Specified by:
copy in class JoinPointInfo

getAdvisedMethod

@Deprecated
public Method getAdvisedMethod()
Deprecated. 


getMethod

public Method getMethod()
Description copied from interface: MethodExecution
Gets the method being called

Specified by:
getMethod in interface MethodExecution

setAdvisedMethod

public void setAdvisedMethod(Method advisedMethod)

getHash

public long getHash()
Description copied from interface: MethodExecution
Gets the hash of the method being called

Specified by:
getHash in interface MethodExecution

setHash

public void setHash(long hash)

getUnadvisedMethod

public Method getUnadvisedMethod()

setUnadvisedMethod

public void setUnadvisedMethod(Method unadvisedMethod)

toString

public String toString()
Overrides:
toString in class Object

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
Overrides:
resolveAnnotation in class JoinPointInfo


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