org.codehaus.aspectwerkz.joinpoint
Class FieldJoinPoint

java.lang.Object
  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 java.lang.Object
implements JoinPoint

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 getTargetObject()
          Returns the target object.
 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 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.

Specified by:
proceedInNewThread in interface JoinPoint
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.

Specified by:
proceed in interface JoinPoint
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

getTargetObject

public abstract java.lang.Object getTargetObject()
Returns the target object.

Specified by:
getTargetObject in interface JoinPoint
Returns:
the target object

getTargetClass

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

Specified by:
getTargetClass in interface JoinPoint
Returns:
the target class

getFieldType

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

Returns:
the field type constant
See Also:
aspectwerkz.Type

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.