|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.introduction.Introduction
Implements the concept of Introductions, which is similar to the concept
of Open Classes A Mixins.
An Introduction makes it possible to extend a class with a new interface
A a new implementation (methods A fields).
| Field Summary | |
static java.lang.Object[] |
EMPTY_OBJECT_ARRAY
An empty Object array. |
| Constructor Summary | |
Introduction(java.lang.String name,
java.lang.String anInterface)
Creates an introduction with an interface. Must be an interface without any methods. |
|
Introduction(java.lang.String name,
java.lang.String intf,
java.lang.Class implClass,
int deploymentModel)
Creates an introduction with an interface A an implementation. |
|
| Method Summary | |
IntroductionContainer |
getContainer()
Returns the container. |
ContainerType |
getContainerType()
Returns the container type. |
int |
getDeploymentModel()
Returns the deployment model. |
java.lang.String |
getImplementation()
Returns the implementation. |
java.lang.String |
getInterface()
Returns the interface. |
java.lang.reflect.Method |
getMethod(int index)
Returns a specific method by the method index. |
java.lang.reflect.Method[] |
getMethods()
Returns all the methods for this introduction. |
java.lang.String |
getName()
Returns the name of the introduction. |
java.lang.Object |
invoke(int methodIndex,
java.lang.Object callingObject)
Invokes the method with the index specified. |
java.lang.Object |
invoke(int methodIndex,
java.lang.Object[] parameters,
java.lang.Object callingObject)
Invokes the method with the index specified. |
void |
setContainer(IntroductionContainer container)
Sets the container. |
void |
setName(java.lang.String name)
Sets the name of the introduction. |
void |
swapImplementation(java.lang.String className)
Swaps the current introduction implementation. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.Object[] EMPTY_OBJECT_ARRAY
Object array.
| Constructor Detail |
public Introduction(java.lang.String name,
java.lang.String anInterface)
name - the name of the introductionanInterface - an interface
public Introduction(java.lang.String name,
java.lang.String intf,
java.lang.Class implClass,
int deploymentModel)
name - the name of the introductionintf - the interfaceimplClass - the implementation classdeploymentModel - the deployment model| Method Detail |
public java.lang.Object invoke(int methodIndex,
java.lang.Object callingObject)
methodIndex - the method indexcallingObject - a reference to the calling object
public java.lang.Object invoke(int methodIndex,
java.lang.Object[] parameters,
java.lang.Object callingObject)
methodIndex - the method indexparameters - the parameters for the invocationcallingObject - a reference to the calling object
public void swapImplementation(java.lang.String className)
className - the class name of the new implementationpublic void setName(java.lang.String name)
name - the name of the introductionpublic java.lang.String getName()
public java.lang.String getInterface()
public java.lang.String getImplementation()
public java.lang.reflect.Method getMethod(int index)
index - the method index
public java.lang.reflect.Method[] getMethods()
public int getDeploymentModel()
public void setContainer(IntroductionContainer container)
container - the containerpublic IntroductionContainer getContainer()
public ContainerType getContainerType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||