|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.xmldef.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 | |
int |
___AW_getDeploymentModel()
Returns the deployment model. |
java.lang.String |
___AW_getImplementationClassName()
Returns the implementation class name for the mixin. |
java.lang.String |
___AW_getName()
Returns the name of the introduction. |
java.lang.Object |
___AW_invokeMixin(int methodIndex,
java.lang.Object callingObject)
Invokes the method with the index specified. |
java.lang.Object |
___AW_invokeMixin(int methodIndex,
java.lang.Object[] parameters,
java.lang.Object callingObject)
Invokes the method with the index specified. |
void |
___AW_swapImplementation(java.lang.String className)
Swaps the current introduction implementation. |
IntroductionContainer |
getContainer()
Returns the container. |
ContainerType |
getContainerType()
Returns the container type. |
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. |
void |
setContainer(IntroductionContainer container)
Sets the container. |
void |
setName(java.lang.String name)
Sets the name of the introduction. |
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 interfacepublic 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 modelMethod Detail |
public java.lang.Object ___AW_invokeMixin(int methodIndex, java.lang.Object callingObject)
___AW_invokeMixin
in interface Mixin
methodIndex
- the method indexcallingObject
- a reference to the calling object
public java.lang.Object ___AW_invokeMixin(int methodIndex, java.lang.Object[] parameters, java.lang.Object callingObject)
___AW_invokeMixin
in interface Mixin
methodIndex
- the method indexparameters
- the parameters for the invocationcallingObject
- a reference to the calling object
public java.lang.String ___AW_getImplementationClassName()
___AW_getImplementationClassName
in interface Mixin
public void ___AW_swapImplementation(java.lang.String className)
___AW_swapImplementation
in interface Mixin
className
- the class name of the new implementationpublic java.lang.String ___AW_getName()
___AW_getName
in interface Mixin
public int ___AW_getDeploymentModel()
___AW_getDeploymentModel
in interface Mixin
public void setName(java.lang.String name)
name
- the name of the introductionpublic java.lang.String getInterface()
public java.lang.reflect.Method getMethod(int index)
index
- the method index
public java.lang.reflect.Method[] getMethods()
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 |