Package org.alfresco.traitextender
Class SingletonExtension<E,T extends Trait>
java.lang.Object
org.alfresco.traitextender.SingletonExtension<E,T>
- Direct Known Subclasses:
SpringBeanExtension
A singleton extension API implementor. The singleton extension continues to exist after the extensible has been collected. The instance of this extension is shared among
Extensibles defining extension-points that this extension is bound to.The Trait it requires is set at call-time on the local thread.- Author:
- Bogdan Horje
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsTrait(Object trait) booleanacceptsTraitClass(Class<?> aTraitClass) protected TgetTrait()
-
Constructor Details
-
SingletonExtension
-
-
Method Details
-
acceptsTrait
-
acceptsTraitClass
-
getTrait
- Returns:
- the
Traitinstance of the current execution extension call.
-