public class SystemPropertyExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<SystemProperty>
SystemProperty
objects.Modifier and Type | Field and Description |
---|---|
protected List<String> |
_displayProps
Collection of the displayable properties.
|
protected List<String> |
_searchProps
Collection of the searchable properties.
|
static String |
ROLE
The extension point role.
|
_cocoonManager, _context, _manager
Constructor and Description |
---|
SystemPropertyExtensionPoint() |
Modifier and Type | Method and Description |
---|---|
void |
addExtension(String id,
String pluginName,
String featureName,
Configuration configuration)
Add an extension to this point.
|
protected void |
addSystemProperty(String pluginName,
String featureName,
Configuration configuration)
Declare a new system property.
|
List<String> |
getDisplayProperties()
Get the IDs of the properties that can be displayed.
|
List<String> |
getSearchProperties()
Get the IDs of the properties that can be searched on.
|
void |
initializeExtensions()
Finalize the initialization of the extensions.
This method is called after all addExtension() calls.This is the last step before the actual startup of the application. |
boolean |
isDisplayable(String name)
Tests if a property exists and is displayable.
|
boolean |
isSearchable(String name)
Tests if a property exists and is searchable.
|
addComponent, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize, service
getLogger, setLogger
protected List<String> _displayProps
protected List<String> _searchProps
public SystemPropertyExtensionPoint()
public void addExtension(String id, String pluginName, String featureName, Configuration configuration) throws ConfigurationException
ExtensionPoint
addExtension
in interface ExtensionPoint<SystemProperty>
addExtension
in class AbstractThreadSafeComponentExtensionPoint<SystemProperty>
id
- the unique identifier of the extension.pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)configuration
- the information about the extension to be addedConfigurationException
- when a configuration problem occursprotected void addSystemProperty(String pluginName, String featureName, Configuration configuration) throws ConfigurationException
pluginName
- The name of the plugin declaring the extensionfeatureName
- The feature name.configuration
- The configuration of the extensionConfigurationException
- if configuration if not completepublic void initializeExtensions() throws Exception
ExtensionPoint
addExtension()
calls.initializeExtensions
in interface ExtensionPoint<SystemProperty>
initializeExtensions
in class AbstractThreadSafeComponentExtensionPoint<SystemProperty>
Exception
- if something wrong occurspublic List<String> getDisplayProperties()
public List<String> getSearchProperties()
public boolean isDisplayable(String name)
name
- The property name.true
if the property exists and is displayable.public boolean isSearchable(String name)
name
- The property name.true
if the property exists and is searchable.