public class DefaultComponentsBundle extends Object implements ComponentsBundle
components bundle implementation.
A components bundle consists of a XML parser
instance and a map of component managers.
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_MESSAGE_KEY_COMPONENT_MANAGER_NOT_FOUND |
| Constructor and Description |
|---|
DefaultComponentsBundle() |
| Modifier and Type | Method and Description |
|---|---|
ComponentManager |
getComponentManager(String componentName)
Returns the manager for a component type identified by name.
|
Map<String,ComponentManager> |
getComponentManagers()
Returns the internal map of component managers, indexed by component name.
|
Set<String> |
getComponentNames()
Returns a set that contains the names of components included in this
bundle.
|
ComponentsXmlParser |
getXmlParser()
Returns the XML parsing information for this bundle.
|
void |
setComponentManagers(Map<String,ComponentManager> componentManagers)
Sets the map of component managers.
|
void |
setXmlParser(ComponentsXmlParser xmlParser)
Sets the components XML parser implementation.
|
public static final String EXCEPTION_MESSAGE_KEY_COMPONENT_MANAGER_NOT_FOUND
public ComponentsXmlParser getXmlParser()
ComponentsBundlegetXmlParser in interface ComponentsBundlepublic void setXmlParser(ComponentsXmlParser xmlParser)
xmlParser - the components XML parsergetXmlParser()public Set<String> getComponentNames()
ComponentsBundlegetComponentNames in interface ComponentsBundlepublic ComponentManager getComponentManager(String componentName)
ComponentsBundlegetComponentManager in interface ComponentsBundlecomponentName - the component namepublic Map<String,ComponentManager> getComponentManagers()
setComponentManagers(Map)public void setComponentManagers(Map<String,ComponentManager> componentManagers)
The map needs to use component names as keys, and ComponentManager
instances as values.
componentManagers - the map of component managersCopyright © 2017. All rights reserved.