Package org.alfresco.traitextender
Class ExtensionPoint<E,M extends Trait>
- java.lang.Object
-
- org.alfresco.traitextender.ExtensionPoint<E,M>
-
public class ExtensionPoint<E,M extends Trait> extends java.lang.ObjectDefines a two-way interfacing mechanism between aTraitexposing object and an extension of that object.
The extended object can call methods of theextensionAPIwhich will be able to interact with the extended object through thetraitAPIinterface it was paired with in the extension point. The actual circumstances in which the extension methods are invoked are not defined by the extension point.- Author:
- Bogdan Horje
-
-
Constructor Summary
Constructors Constructor Description ExtensionPoint(java.lang.Class<E> extensionAPI, java.lang.Class<M> traitAPI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.Class<E>getExtensionAPI()java.lang.Class<M>getTraitAPI()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getExtensionAPI
public java.lang.Class<E> getExtensionAPI()
-
getTraitAPI
public java.lang.Class<M> getTraitAPI()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-