Package org.alfresco.traitextender
Class RegistryExtensionBundle
java.lang.Object
org.alfresco.traitextender.RegistryExtensionBundle
- All Implemented Interfaces:
ExtensionBundle
- Author:
- Bogdan Horje
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()<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.voidSets up an registers extension factories with the giveExtenderfor all extensions defined by this bundle.voidUnregisters all defined extensions from the givenExtender.
-
Constructor Details
-
RegistryExtensionBundle
-
-
Method Details
-
register
public <E,C extends E, void registerM extends Trait> (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
Description copied from interface:ExtensionBundleSets up an registers extension factories with the giveExtenderfor all extensions defined by this bundle.- Specified by:
startin interfaceExtensionBundle
-
stop
Description copied from interface:ExtensionBundleUnregisters all defined extensions from the givenExtender.- Specified by:
stopin interfaceExtensionBundle
-
getId
- Specified by:
getIdin interfaceExtensionBundle
-