org.jboss.aop.instrument
Class JoinpointClassification

java.lang.Object
  extended by org.jboss.aop.instrument.JoinpointClassification

public final class JoinpointClassification
extends Object

This class represents the classification of a joinpoint. JoinpointClassification is an implementation of the Enum Type Pattern, described by Joshua Block on his book entitled "Effective Java Programming Language Guide".

Author:
Flavia Rainone

Field Summary
static JoinpointClassification DYNAMICALY_WRAPPED
          Indicates that the joinpoint must be wrapped inside a code block for interception due only to dynamic bindings.
static JoinpointClassification NOT_INSTRUMENTED
          Indicates that the joinpoint mustn't be instrumented.
static JoinpointClassification PREPARED
          Indicates that the joinpoint must be prepared for runtime wrapping.
static JoinpointClassification WRAPPED
          Indicates that the joinpoint must be wrapped inside a code block for interception.
 
Method Summary
 boolean equals(Object other)
           
 String toString()
          Returns a description of the joinpoint classification.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_INSTRUMENTED

public static JoinpointClassification NOT_INSTRUMENTED
Indicates that the joinpoint mustn't be instrumented.


PREPARED

public static JoinpointClassification PREPARED
Indicates that the joinpoint must be prepared for runtime wrapping.


WRAPPED

public static JoinpointClassification WRAPPED
Indicates that the joinpoint must be wrapped inside a code block for interception.


DYNAMICALY_WRAPPED

public static JoinpointClassification DYNAMICALY_WRAPPED
Indicates that the joinpoint must be wrapped inside a code block for interception due only to dynamic bindings. This status is necessary to diferentatiate from WRAPPED. When a joinpoint will be wrapped due to a dynamic aop operation, considering the class containing the joinpoint is being loaded after the dynamic operation was performed, and the joinpoint is, for example, a field read, we know we will have to replace fiel reads in classes already loaded by the field read wrapper. So, this status is a flag telling: "you may have to replace the joinpoint executions by the joinpoint wrappers in already loaded classes (only in hot swap enabled case).

Method Detail

toString

public String toString()
Returns a description of the joinpoint classification.

Overrides:
toString in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object


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