public class WidgetFactoryRegistry extends Object
Constructor and Description |
---|
WidgetFactoryRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addWidgetFactory(String identifier,
WidgetFactory factory)
Add a plugin widget factory to the registry.
|
WidgetFactory |
getWidgetFactory(String identifier)
Return a registered widget factory.
|
void |
removeWidgetFactory(String identifier)
Remove a previously added widget factory from the registry.
|
public void addWidgetFactory(String identifier, WidgetFactory factory)
identifier
- unique identifier of the provider of the factory, which should usually be the
bundle name. This factory will only be used if a request for a widget of this
provider is received.factory
- the factory to registerpublic WidgetFactory getWidgetFactory(String identifier)
identifier
- unique identifier of the provider of the factory, which should usually be the
bundle namepublic void removeWidgetFactory(String identifier)
identifier
- unique identifier of the provider of the factory, which was used to register the
factoryaddWidgetFactory(String, WidgetFactory)
Copyright © 2019 Communote team. All rights reserved.