public class StaticTreeConfiguration extends Object implements TreeConfiguration, Configurable, Serviceable, PluginAware
Modifier and Type | Field and Description |
---|---|
private Configuration |
_configuration |
protected ContentTypeExtensionPoint |
_contentTypesEP
The content type extension point
|
protected Set<TreeConfigurationElements> |
_elements
The collection of elements
|
protected String |
_id
The extension id
|
protected String |
_pluginName
The plugin name
|
protected SourceResolver |
_sourceResolver
The excalibur source resolver
|
protected String |
_uiToolRole
The ui tool role
|
Constructor and Description |
---|
StaticTreeConfiguration() |
Modifier and Type | Method and Description |
---|---|
private Configuration |
_getDeportedConfiguration(Configuration initialConfiguration) |
private void |
_lazyConfigure() |
void |
configure(Configuration initialConfiguration) |
protected Collection<TreeConfigurationElementsChild> |
getChildNodes(Configuration configuration)
Get the child nodes
|
protected TreeConfigurationContentType |
getContentTypeInfo(Configuration configuration,
boolean defaultCanBeRoot,
boolean defaultInherit,
String defaultBusMessageType)
Get the content info using a configuration
|
protected Collection<TreeConfigurationContentType> |
getContentTypesInfos(Configuration configuration)
Get the contents infos using a configuration
|
Set<TreeConfigurationElements> |
getElements()
Get the elements to build the tree
|
String |
getId()
Get the extension unique id
|
String |
getUIToolRole()
Get the tool role for the UI tool factory
|
void |
service(ServiceManager manager) |
void |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
protected String _uiToolRole
protected Set<TreeConfigurationElements> _elements
protected ContentTypeExtensionPoint _contentTypesEP
protected SourceResolver _sourceResolver
protected String _pluginName
private Configuration _configuration
public StaticTreeConfiguration()
public String getId()
TreeConfiguration
getId
in interface TreeConfiguration
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this componentpublic void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void configure(Configuration initialConfiguration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
private void _lazyConfigure()
private Configuration _getDeportedConfiguration(Configuration initialConfiguration) throws ConfigurationException
ConfigurationException
protected Collection<TreeConfigurationElementsChild> getChildNodes(Configuration configuration) throws ConfigurationException
configuration
- The configurationConfigurationException
- if configuration is invalidprotected Collection<TreeConfigurationContentType> getContentTypesInfos(Configuration configuration) throws ConfigurationException
configuration
- the configurationConfigurationException
- if an error occurredprotected TreeConfigurationContentType getContentTypeInfo(Configuration configuration, boolean defaultCanBeRoot, boolean defaultInherit, String defaultBusMessageType) throws ConfigurationException
configuration
- The configurationdefaultCanBeRoot
- default value for root propertydefaultInherit
- default value for inherit propertydefaultBusMessageType
- default type of messageConfigurationException
- if the configuration is invalidpublic String getUIToolRole()
TreeConfiguration
getUIToolRole
in interface TreeConfiguration
public Set<TreeConfigurationElements> getElements()
TreeConfiguration
getElements
in interface TreeConfiguration