Package org.alfresco.traitextender
Class RegistryExtensionBundle
- java.lang.Object
-
- org.alfresco.traitextender.RegistryExtensionBundle
-
- All Implemented Interfaces:
ExtensionBundle
public class RegistryExtensionBundle extends java.lang.Object implements ExtensionBundle
- Author:
- Bogdan Horje
-
-
Constructor Summary
Constructors Constructor Description RegistryExtensionBundle(java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()<E,C extends E,M extends Trait>
voidregister(ExtensionPoint<E,M> point, ExtensionFactory<C> factory)Registers an association between the givenExtensionPointandExtensionFactory.
Atstart(Extender)time all registeredExtensionPoints will be registered with the givenExtender.
Atstop(Extender)time all registeredExtensionPoints will be unregistered with the givenExtender.voidstart(Extender extender)Sets up an registers extension factories with the giveExtenderfor all extensions defined by this bundle.voidstop(Extender extender)Unregisters all defined extensions from the givenExtender.
-
-
-
Method Detail
-
register
public <E,C extends E,M extends Trait> void register(ExtensionPoint<E,M> point, ExtensionFactory<C> factory)
Registers an association between the givenExtensionPointandExtensionFactory.
Atstart(Extender)time all registeredExtensionPoints will be registered with the givenExtender.
Atstop(Extender)time all registeredExtensionPoints will be unregistered with the givenExtender.- Parameters:
point-factory-
-
start
public void start(Extender extender)
Description copied from interface:ExtensionBundleSets up an registers extension factories with the giveExtenderfor all extensions defined by this bundle.- Specified by:
startin interfaceExtensionBundle
-
stop
public void stop(Extender extender)
Description copied from interface:ExtensionBundleUnregisters all defined extensions from the givenExtender.- Specified by:
stopin interfaceExtensionBundle
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceExtensionBundle
-
-