public class AnalysisWidgetRegistry extends java.lang.Object implements IAnalysisWidgetRegistry
IAnalysisWidgetRegistry
. The
underlying structure is a Map with Classes as the key and
IAnalysisWidgetFactory
instances as the value.AnalysisWidgetRegistry.xml
. There should also
be a bundle somewhere that consumes (references) this service.Constructor and Description |
---|
AnalysisWidgetRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addAnalysisWidgetFactory(IAnalysisWidgetFactory factory)
Adds an
IAnalysisWidgetFactory to the registry. |
IAnalysisWidgetFactory |
getAnalysisWidgetFactory(java.lang.Class<?> key)
Queries the registry for factories registered to a particular class.
|
public void addAnalysisWidgetFactory(IAnalysisWidgetFactory factory)
IAnalysisWidgetFactory
to the registry. If the factory's
IAnalysisWidgetFactory.getModelClasses()
returns null, the
factory will not be added. If the method returns a pre-existing class
already in the registry, the old factory will be replaced with this one.addAnalysisWidgetFactory
in interface IAnalysisWidgetRegistry
factory
- The IAnalysisWidgetFactory to add to the registry.public IAnalysisWidgetFactory getAnalysisWidgetFactory(java.lang.Class<?> key)
IAnalysisWidgetRegistry
getAnalysisWidgetFactory
in interface IAnalysisWidgetRegistry
key
- The class of the model to analyze.IAnalysisWidgetFactory
registered to the
provided class, or null
if there is none.