org.codehaus.aspectwerkz.joinpoint
Interface StaticJoinPoint

All Known Subinterfaces:
JoinPoint
All Known Implementing Classes:
JoinPointBase

public interface StaticJoinPoint

Implements the join point concept, e.g. defines a well defined point in the program flow.

Provides access to only static data, is therefore much more performant than the usage of the JoinPoint interface.

Author:
Jonas Bonér

Field Summary
static String CONSTRUCTOR_CALL
           
static String CONSTRUCTOR_EXECUTION
           
static String FIELD_GET
           
static String FIELD_SET
           
static String HANDLER
           
static String METHOD_CALL
           
static String METHOD_EXECUTION
           
static String STATIC_INITIALIZATION
           
 
Method Summary
 void addMetaData(Object key, Object value)
          Adds metadata.
 StaticJoinPoint deepCopy()
          Clones the join point instance.
 Object getCallee()
          Returns the callee instance.
 Object getCaller()
          Returns the caller instance.
 Class getCallerClass()
          Returns the caller class.
 Object getMetaData(Object key)
          Returns metadata matchingn a specfic key.
 Signature getSignature()
          Returns the signature for the join point.
 Object getTarget()
          Returns the target instance.
 Class getTargetClass()
          Returns the target class.
 Object getThis()
          Returns the 'this' instance (the one currently executing).
 String getType()
          Returns the join point type.
 Object proceed()
          Walks through the pointcuts and invokes all its advices.
 

Field Detail

METHOD_EXECUTION

public static final String METHOD_EXECUTION
See Also:
Constant Field Values

METHOD_CALL

public static final String METHOD_CALL
See Also:
Constant Field Values

CONSTRUCTOR_EXECUTION

public static final String CONSTRUCTOR_EXECUTION
See Also:
Constant Field Values

CONSTRUCTOR_CALL

public static final String CONSTRUCTOR_CALL
See Also:
Constant Field Values

FIELD_SET

public static final String FIELD_SET
See Also:
Constant Field Values

FIELD_GET

public static final String FIELD_GET
See Also:
Constant Field Values

HANDLER

public static final String HANDLER
See Also:
Constant Field Values

STATIC_INITIALIZATION

public static final String STATIC_INITIALIZATION
See Also:
Constant Field Values
Method Detail

proceed

public Object proceed()
               throws Throwable
Walks through the pointcuts and invokes all its advices. When the last advice of the last pointcut has been invoked, the original method is invoked. Is called recursively.

Returns:
the result from the next invocation
Throws:
Throwable

deepCopy

public StaticJoinPoint deepCopy()
Clones the join point instance.

Returns:
the cloned join point instance

getMetaData

public Object getMetaData(Object key)
Returns metadata matchingn a specfic key.

Parameters:
key - the key to the metadata
Returns:
the value

addMetaData

public void addMetaData(Object key,
                        Object value)
Adds metadata.

Parameters:
key - the key to the metadata
value - the value

getSignature

public Signature getSignature()
Returns the signature for the join point.

Returns:
the signature

getCallee

public Object getCallee()
Returns the callee instance.

Returns:
the callee instance

getCaller

public Object getCaller()
Returns the caller instance.

Returns:
the caller instance

getThis

public Object getThis()
Returns the 'this' instance (the one currently executing).

Returns:
'this'

getTarget

public Object getTarget()
Returns the target instance. If the join point is executing in a static context it returns null.

Returns:
the target instance

getCallerClass

public Class getCallerClass()
Returns the caller class.

Returns:
the caller class

getTargetClass

public Class getTargetClass()
Returns the target class.

Returns:
the target class

getType

public String getType()
Returns the join point type.

Returns:
the type


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.