|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.aspectwerkz.aspect.Introduction
Interface+Implementation Introduction
This represents the inner class mixin based implementation in the system
| Field Summary | |
static Object[] |
EMPTY_OBJECT_ARRAY
An empty Object array. |
protected int |
m_deploymentModel
Holds the deployment model. |
| Constructor Summary | |
Introduction(String name,
Class implClass,
CrossCuttingInfo crossCuttingInfo,
IntroductionDefinition definition)
Create a new introduction |
|
| Method Summary | |
void |
createMixin()
Creates a new mixin instance. |
CrossCuttingInfo |
getCrossCuttingInfo()
Returns the cross-cutting info. |
int |
getDeploymentModel()
Returns the mixin deployment model. |
Object |
getImplementation()
Returns the implementation object for the mixin. |
Class |
getImplementationClass()
Returns the implementation object for the mixin. |
String |
getImplementationClassName()
Returns the implementation class name for the mixin. |
IntroductionDefinition |
getIntroductionDefinition()
Returns the definition. |
String |
getName()
Returns the name of the mixin. |
Object |
invokeMixin(int methodIndex,
Object callingObject)
Invokes the method with the index specified. |
Object |
invokeMixin(int methodIndex,
Object[] parameters,
Object callingObject)
Invokes an introduced method with the index specified. |
static Introduction |
newInstance(Introduction prototype,
CrossCuttingInfo crossCuttingInfo)
Clone the prototype Introduction. |
void |
setContainer(IntroductionContainer container)
Set the container. |
void |
setDeploymentModel(int deploymentModel)
Sets the deployment model. |
void |
swapImplementation(String className)
Swaps the current introduction implementation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final Object[] EMPTY_OBJECT_ARRAY
Object array.
protected int m_deploymentModel
| Constructor Detail |
public Introduction(String name,
Class implClass,
CrossCuttingInfo crossCuttingInfo,
IntroductionDefinition definition)
name - of this introduction - by convention the AspectClassFQN $ InnerClassimplClass - crossCuttingInfo - which defines this mixindefinition - | Method Detail |
public static Introduction newInstance(Introduction prototype,
CrossCuttingInfo crossCuttingInfo)
prototype - introductioncrossCuttingInfo - the cross-cutting info
public void createMixin()
public void setContainer(IntroductionContainer container)
container - public CrossCuttingInfo getCrossCuttingInfo()
public IntroductionDefinition getIntroductionDefinition()
public String getName()
getName in interface Mixinpublic int getDeploymentModel()
getDeploymentModel in interface Mixinpublic void setDeploymentModel(int deploymentModel)
deploymentModel - the deployment model
public Object invokeMixin(int methodIndex,
Object callingObject)
throws Throwable
invokeMixin in interface MixinmethodIndex - the method indexcallingObject - a reference to the calling object
Throwable
public Object invokeMixin(int methodIndex,
Object[] parameters,
Object callingObject)
throws Throwable
invokeMixin in interface MixinmethodIndex - the method indexparameters - the parameters for the invocationcallingObject - a reference to the calling object
Throwablepublic String getImplementationClassName()
getImplementationClassName in interface Mixinpublic Class getImplementationClass()
public Object getImplementation()
public void swapImplementation(String className)
swapImplementation in interface MixinclassName - the class name of the new implementation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||