org.jboss.aop.advice
Class AdviceMethodProperties

java.lang.Object
  extended by org.jboss.aop.advice.AdviceMethodProperties

public class AdviceMethodProperties
extends Object

Contains the properties of an advice method that we want to find. Once found it is populated with the arguments

Version:
$Revision: 70826 $
Author:
Kabir Khan

Nested Class Summary
static class AdviceMethodProperties.OptionalParameters
           
 
Field Summary
static int ARG_ARG
           
static int ARGS_ARG
           
static int CALLER_ARG
           
static javassist.CtClass[] EMPTY_PARAMETERS
           
static int INVOCATION_ARG
           
static int JOINPOINT_ARG
           
static int RETURN_ARG
           
static int TARGET_ARG
           
static int THROWABLE_ARG
           
 
Constructor Summary
AdviceMethodProperties(JoinPointBean joinPoint, Class<?> aspectClass, String adviceName, Class<?> thrownType, Class<?> joinPointBeanType, Class<?> invocationType, Type joinpointReturnType, Type[] joinpointParameters, Class<?>[] joinpointParameterClassTypes, Type[] joinpointExceptions, Type target, boolean targetAvailable)
           
AdviceMethodProperties(JoinPointBean joinPoint, Class<?> aspectClass, String adviceName, Class<?> thrownType, Class<?> joinPointBeanType, Class<?> invocationType, Type joinpointReturnType, Type[] joinpointParameters, Class<?>[] joinpointParameterClassTypes, Type[] joinpointExceptions, Type target, boolean targetAvailable, Type caller, boolean callerAvailable)
           
AdviceMethodProperties(JoinPointBean joinPoint, Class<?> aspectClass, String adviceName, Class<?> joinPointBeanType, Class<?> invocationType, Type joinpointReturnType, Type[] joinpointParameters, Class<?>[] joinpointParameterClassTypes, Type[] joinpointExceptions, Type target, boolean targetAvailable)
           
AdviceMethodProperties(JoinPointBean joinPoint, Class<?> aspectClass, String adviceName, Class<?> joinPointBeanType, Class<?> invocationType, Type joinpointReturnType, Type[] joinpointParameters, Class<?>[] joinpointParameterClassTypes, Type[] joinpointExceptions, Type target, boolean targetAvailable, Type caller, boolean callerAvailable)
           
 
Method Summary
 Method getAdviceMethod()
           
 String getAdviceName()
           
 int[] getArgs()
           
 Class<?> getAspectClass()
           
 Type getCallerType()
           
 Class<?> getInvocationType()
           
 JoinPointBean getJoinPoint()
           
 Class<?> getJoinPointBeanType()
           
 Type[] getJoinpointExceptions()
           
 Class<?>[] getJoinpointParameterClassTypes()
           
 Type[] getJoinpointParameters()
           
 Type getJoinpointReturnType()
           
 AdviceMethodProperties.OptionalParameters getOptionalParameters()
           
 Type getTargetType()
           
 Class<?> getThrownType()
           
 boolean isAdviceOverloaded()
           
 boolean isAdviceVoid()
           
 boolean isCallerAvailable()
           
 boolean isTargetAvailable()
           
 void setAdviceOverloaded(boolean overloaded)
           
 void setFoundProperties(Method adviceMethod, int[] args)
           
 void setOptionalParameters(AdviceMethodProperties.OptionalParameters optionalParameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOINPOINT_ARG

public static final int JOINPOINT_ARG
See Also:
Constant Field Values

INVOCATION_ARG

public static final int INVOCATION_ARG
See Also:
Constant Field Values

TARGET_ARG

public static final int TARGET_ARG
See Also:
Constant Field Values

RETURN_ARG

public static final int RETURN_ARG
See Also:
Constant Field Values

THROWABLE_ARG

public static final int THROWABLE_ARG
See Also:
Constant Field Values

ARGS_ARG

public static final int ARGS_ARG
See Also:
Constant Field Values

CALLER_ARG

public static final int CALLER_ARG
See Also:
Constant Field Values

ARG_ARG

public static final int ARG_ARG
See Also:
Constant Field Values

EMPTY_PARAMETERS

public static final javassist.CtClass[] EMPTY_PARAMETERS
Constructor Detail

AdviceMethodProperties

public AdviceMethodProperties(JoinPointBean joinPoint,
                              Class<?> aspectClass,
                              String adviceName,
                              Class<?> joinPointBeanType,
                              Class<?> invocationType,
                              Type joinpointReturnType,
                              Type[] joinpointParameters,
                              Class<?>[] joinpointParameterClassTypes,
                              Type[] joinpointExceptions,
                              Type target,
                              boolean targetAvailable)

AdviceMethodProperties

public AdviceMethodProperties(JoinPointBean joinPoint,
                              Class<?> aspectClass,
                              String adviceName,
                              Class<?> thrownType,
                              Class<?> joinPointBeanType,
                              Class<?> invocationType,
                              Type joinpointReturnType,
                              Type[] joinpointParameters,
                              Class<?>[] joinpointParameterClassTypes,
                              Type[] joinpointExceptions,
                              Type target,
                              boolean targetAvailable)

AdviceMethodProperties

public AdviceMethodProperties(JoinPointBean joinPoint,
                              Class<?> aspectClass,
                              String adviceName,
                              Class<?> joinPointBeanType,
                              Class<?> invocationType,
                              Type joinpointReturnType,
                              Type[] joinpointParameters,
                              Class<?>[] joinpointParameterClassTypes,
                              Type[] joinpointExceptions,
                              Type target,
                              boolean targetAvailable,
                              Type caller,
                              boolean callerAvailable)

AdviceMethodProperties

public AdviceMethodProperties(JoinPointBean joinPoint,
                              Class<?> aspectClass,
                              String adviceName,
                              Class<?> thrownType,
                              Class<?> joinPointBeanType,
                              Class<?> invocationType,
                              Type joinpointReturnType,
                              Type[] joinpointParameters,
                              Class<?>[] joinpointParameterClassTypes,
                              Type[] joinpointExceptions,
                              Type target,
                              boolean targetAvailable,
                              Type caller,
                              boolean callerAvailable)
Method Detail

setFoundProperties

public void setFoundProperties(Method adviceMethod,
                               int[] args)

getJoinPoint

public JoinPointBean getJoinPoint()

getAdviceName

public String getAdviceName()

getAspectClass

public Class<?> getAspectClass()

getThrownType

public Class<?> getThrownType()

getJoinPointBeanType

public Class<?> getJoinPointBeanType()

getInvocationType

public Class<?> getInvocationType()

getJoinpointExceptions

public Type[] getJoinpointExceptions()

getJoinpointParameters

public Type[] getJoinpointParameters()

getJoinpointParameterClassTypes

public Class<?>[] getJoinpointParameterClassTypes()

getJoinpointReturnType

public Type getJoinpointReturnType()

isAdviceVoid

public boolean isAdviceVoid()
                     throws javassist.NotFoundException
Throws:
javassist.NotFoundException

getAdviceMethod

public Method getAdviceMethod()

getArgs

public int[] getArgs()

getTargetType

public Type getTargetType()

isTargetAvailable

public boolean isTargetAvailable()

getCallerType

public Type getCallerType()

isCallerAvailable

public boolean isCallerAvailable()

getOptionalParameters

public AdviceMethodProperties.OptionalParameters getOptionalParameters()

setOptionalParameters

public void setOptionalParameters(AdviceMethodProperties.OptionalParameters optionalParameters)

isAdviceOverloaded

public boolean isAdviceOverloaded()

setAdviceOverloaded

public void setAdviceOverloaded(boolean overloaded)


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