| Constructor and Description |
|---|
ExtenderImpl() |
| Modifier and Type | Method and Description |
|---|---|
<E,M extends Trait> |
getExtension(Extensible anExtensible,
ExtensionPoint<E,M> point)
Creates and returns a unique per
ExtensibleTrait object or
null if no extension-point factory is registered for the
given ExtensionPoint.Given that Extensible.getTrait(Class) is used to obtain the
ExtendedTrait that the returned extension is uniquely associated
with, the uniqueness and garbage collection of the returned extension is
dependent on how the given Extensible handles its
ExtendedTraits. |
void |
register(ExtensionPoint<?,?> point,
ExtensionFactory<?> factory)
Registers an extension-point to factory association to be used in
extension creation.
|
void |
start(ExtensionBundle bundle)
Start life-cycle phase trigger method.
Upon successful execution the bundle will have all its extension points registered using Extender.register(ExtensionPoint, ExtensionFactory) and
ready to be. |
void |
stop(ExtensionBundle bundle)
Start life-cycle phase trigger method.
Upon successful execution the bundle will have all its extension points unregistered using Extender.unregister(ExtensionPoint). |
void |
stopAll()
Stops all previously registered
ExtensionBundles. |
void |
unregister(ExtensionPoint<?,?> point)
Unregisters an extension-point to factory association of the given
extension point.
|
getInstancepublic void start(ExtensionBundle bundle)
ExtenderExtender.register(ExtensionPoint, ExtensionFactory) and
ready to be.public void stop(ExtensionBundle bundle)
ExtenderExtender.unregister(ExtensionPoint).public void stopAll()
ExtenderExtensionBundles.public <E,M extends Trait> E getExtension(Extensible anExtensible, ExtensionPoint<E,M> point)
ExtenderExtensibleTrait object or
null if no extension-point factory is registered for the
given ExtensionPoint.Extensible.getTrait(Class) is used to obtain the
ExtendedTrait that the returned extension is uniquely associated
with, the uniqueness and garbage collection of the returned extension is
dependent on how the given Extensible handles its
ExtendedTraits.getExtension in class ExtenderExtensibleTrait extension object or
null if no extension-point factory is registered for
the given ExtensionPointpublic void register(ExtensionPoint<?,?> point, ExtensionFactory<?> factory)
ExtenderExtensibleTrait extension is returned by
Extender.getExtension(Extensible, ExtensionPoint).register in class Extenderpoint - the extension point to be associated with the given
extension factory during extension retrieval using
Extender.getExtension(Extensible, ExtensionPoint)public void unregister(ExtensionPoint<?,?> point)
ExtenderExtender.getExtension(Extensible, ExtensionPoint).unregister in class ExtenderCopyright © 2005–2018 Alfresco Software. All rights reserved.