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: 59386 $
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(Class aspectClass, String adviceName, Class infoType, Class invocationType, Class joinpointReturnType, Class[] joinpointParameters, Class[] joinpointExceptions)
           
AdviceMethodProperties(Class aspectClass, String adviceName, Class infoType, Class invocationType, Class joinpointReturnType, Class[] joinpointParameters, Class[] joinpointExceptions, Class target, boolean targetAvailable)
           
AdviceMethodProperties(Class aspectClass, String adviceName, Class infoType, Class invocationType, Class joinpointReturnType, Class[] joinpointParameters, Class[] joinpointExceptions, Class target, boolean targetAvailable, Class caller, boolean callerAvailable)
           
 
Method Summary
 Method getAdviceMethod()
           
 String getAdviceName()
           
 int[] getArgs()
           
 Class getAspectClass()
           
 Class getCallerType()
           
 Class getInfoType()
           
 Class getInvocationType()
           
 Class[] getJoinpointExceptions()
           
 Class[] getJoinpointParameters()
           
 Class<?> getJoinpointReturnType()
           
 AdviceMethodProperties.OptionalParameters getOptionalParameters()
           
 Class getTargetType()
           
 boolean isAdviceVoid()
           
 boolean isCallerAvailable()
           
 boolean isTargetAvailable()
           
 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(Class aspectClass,
                              String adviceName,
                              Class infoType,
                              Class invocationType,
                              Class joinpointReturnType,
                              Class[] joinpointParameters,
                              Class[] joinpointExceptions)

AdviceMethodProperties

public AdviceMethodProperties(Class aspectClass,
                              String adviceName,
                              Class infoType,
                              Class invocationType,
                              Class joinpointReturnType,
                              Class[] joinpointParameters,
                              Class[] joinpointExceptions,
                              Class target,
                              boolean targetAvailable)

AdviceMethodProperties

public AdviceMethodProperties(Class aspectClass,
                              String adviceName,
                              Class infoType,
                              Class invocationType,
                              Class joinpointReturnType,
                              Class[] joinpointParameters,
                              Class[] joinpointExceptions,
                              Class target,
                              boolean targetAvailable,
                              Class caller,
                              boolean callerAvailable)
Method Detail

setFoundProperties

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

getAdviceName

public String getAdviceName()

getAspectClass

public Class getAspectClass()

getInfoType

public Class getInfoType()

getInvocationType

public Class getInvocationType()

getJoinpointExceptions

public Class[] getJoinpointExceptions()

getJoinpointParameters

public Class[] getJoinpointParameters()

getJoinpointReturnType

public Class<?> getJoinpointReturnType()

isAdviceVoid

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

getAdviceMethod

public Method getAdviceMethod()

getArgs

public int[] getArgs()

getTargetType

public Class getTargetType()

isTargetAvailable

public boolean isTargetAvailable()

getCallerType

public Class getCallerType()

isCallerAvailable

public boolean isCallerAvailable()

getOptionalParameters

public AdviceMethodProperties.OptionalParameters getOptionalParameters()

setOptionalParameters

public void setOptionalParameters(AdviceMethodProperties.OptionalParameters optionalParameters)


Copyright © 2004 JBoss Inc. All Rights Reserved.