public class RegistryExtensionBundle extends Object implements ExtensionBundle
Constructor and Description |
---|
RegistryExtensionBundle(String id) |
Modifier and Type | Method and Description |
---|---|
String |
getId() |
<E,C extends E,M extends Trait> |
register(ExtensionPoint<E,M> point,
ExtensionFactory<C> factory)
Registers an association between the given
ExtensionPoint and
ExtensionFactory .At start(Extender) time all registered ExtensionPoint s
will be registered with the given Extender .At stop(Extender) time all registered ExtensionPoint s
will be unregistered with the given Extender . |
void |
start(Extender extender)
Sets up an registers extension factories with the give
Extender
for all extensions defined by this bundle. |
void |
stop(Extender extender)
Unregisters all defined extensions from the given
Extender . |
public RegistryExtensionBundle(String id)
public <E,C extends E,M extends Trait> void register(ExtensionPoint<E,M> point, ExtensionFactory<C> factory)
ExtensionPoint
and
ExtensionFactory
.start(Extender)
time all registered ExtensionPoint
s
will be registered with the given Extender
.stop(Extender)
time all registered ExtensionPoint
s
will be unregistered with the given Extender
.point
- factory
- public void start(Extender extender)
ExtensionBundle
Extender
for all extensions defined by this bundle.start
in interface ExtensionBundle
public void stop(Extender extender)
ExtensionBundle
Extender
.stop
in interface ExtensionBundle
public String getId()
getId
in interface ExtensionBundle
Copyright © 2005–2017 Alfresco Software. All rights reserved.