org.codehaus.aspectwerkz.joinpoint
Class FieldJoinPoint

java.lang.Object
  extended byorg.codehaus.aspectwerkz.joinpoint.AbstractJoinPoint
      extended byorg.codehaus.aspectwerkz.joinpoint.FieldJoinPoint
All Implemented Interfaces:
JoinPoint, java.io.Serializable
Direct Known Subclasses:
MemberFieldGetJoinPoint, MemberFieldSetJoinPoint, StaticFieldGetJoinPoint, StaticFieldSetJoinPoint

public abstract class FieldJoinPoint
extends AbstractJoinPoint

Matches well defined point of execution in the program where a field is set or accessed. Stores meta data from the join point. I.e. a reference to original object A method, name A type of the field etc. Handles the invocation of the advices added to the join point.

Author:
Jonas Bonér
See Also:
Serialized Form

Constructor Summary
FieldJoinPoint(java.lang.String uuid, java.lang.String signature)
          Creates a new MemberFieldGetJoinPoint object.
 
Method Summary
 void createMetaData()
          Creates a meta-data for the field for this joinpoint.
 java.lang.String getFieldName()
          Returns the field name.
 Type getFieldType()
          Returns the field type as a Type object.
 java.lang.String getFieldTypeName()
          Returns the name of the field type.
 java.lang.String getSignature()
          Returns the signature of the field.
abstract  java.lang.Class getTargetClass()
          Returns the target class.
abstract  java.lang.Object getTargetInstance()
          Returns the target instance.
 void post()
          Invokes the next post advice in the chain until it reaches the end.
 void pre()
          Invokes the next pre advice in the chain until it reaches the end.
 java.lang.Object proceed()
          Does not do anything.
 java.lang.Object proceedInNewThread()
          Does not do anything.
 
Methods inherited from class org.codehaus.aspectwerkz.joinpoint.AbstractJoinPoint
getAttribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldJoinPoint

public FieldJoinPoint(java.lang.String uuid,
                      java.lang.String signature)
Creates a new MemberFieldGetJoinPoint object.

Parameters:
uuid - the UUID for the AspectWerkz system to use
signature - the field signature
Method Detail

proceedInNewThread

public java.lang.Object proceedInNewThread()
                                    throws java.lang.Throwable
Does not do anything.

Returns:
the result from the next invocation
Throws:
java.lang.Throwable

proceed

public java.lang.Object proceed()
                         throws java.lang.Throwable
Does not do anything.

Returns:
the result from the next invocation
Throws:
java.lang.Throwable

pre

public void pre()
         throws java.lang.Throwable
Invokes the next pre advice in the chain until it reaches the end.

Throws:
java.lang.Throwable

post

public void post()
          throws java.lang.Throwable
Invokes the next post advice in the chain until it reaches the end.

Throws:
java.lang.Throwable

getTargetInstance

public abstract java.lang.Object getTargetInstance()
Returns the target instance.

Returns:
the target instance

getTargetClass

public abstract java.lang.Class getTargetClass()
Returns the target class.

Returns:
the target class

getFieldType

public Type getFieldType()
Returns the field type as a Type object.

Returns:
the field type constant

getFieldTypeName

public java.lang.String getFieldTypeName()
Returns the name of the field type.

Returns:
the name of the field type

getSignature

public java.lang.String getSignature()
Returns the signature of the field.

Returns:
the signature

getFieldName

public java.lang.String getFieldName()
Returns the field name.

Returns:
the field name

createMetaData

public void createMetaData()
Creates a meta-data for the field for this joinpoint.



Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.