public class ServiceXSLTEnumerator extends AbstractLogEnabled implements Enumerator, Component, Configurable, PluginAware, Serviceable, Contextualizable
Modifier and Type | Field and Description |
---|---|
protected Context |
_context
The avalon context
|
protected String |
_defaultValue
The default value of the xsl to use.
|
protected String |
_featureName
The feature declaring the enumerator
|
protected Pattern |
_fileFilter
The file pattern
|
protected String |
_path
The relative path to search
|
protected String |
_pluginName
The plugin declaring the enumerator
|
protected SourceResolver |
_resolver
The excalibur source resolver
|
protected Set<String> |
_values
The plugin xsl to use.
|
Constructor and Description |
---|
ServiceXSLTEnumerator() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
_filterNames(Collection<TraversableSource> files)
Filter a list of sources to return thoses matching the _filter
|
private Set<String> |
_getPluginOtherXSL(Configuration configuration) |
void |
configure(Configuration configuration) |
void |
contextualize(Context context) |
Map<String,Object> |
getConfiguration()
Get the configuration this enumerator
|
Map<Object,I18nizableText> |
getEntries()
Provides the enumerated values with their optional label.
|
I18nizableText |
getEntry(String value)
Retrieves a single label from a value.
|
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. |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected Pattern _fileFilter
protected String _pluginName
protected String _featureName
protected SourceResolver _resolver
protected String _defaultValue
public ServiceXSLTEnumerator()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
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 Map<String,Object> getConfiguration()
Enumerator
getConfiguration
in interface Enumerator
protected List<String> _filterNames(Collection<TraversableSource> files)
files
- A non null list of files to filterpublic Map<Object,I18nizableText> getEntries() throws Exception
Enumerator
getEntries
in interface Enumerator
Exception
- if an error occurs.public I18nizableText getEntry(String value) throws Exception
Enumerator
getEntry
in interface Enumerator
value
- the value.null
if not found.Exception
- if an error occurs.private Set<String> _getPluginOtherXSL(Configuration configuration)