public class SynchronizeContentsCollectionModelExtensionPoint extends AbstractLogEnabled implements ExtensionPoint<SynchronizableContentsCollectionModel>, Initializable, ThreadSafe, Component, Serviceable, Contextualizable, Disposable
SynchronizableContentsCollectionModel
s.Modifier and Type | Class and Description |
---|---|
class |
SynchronizeContentsCollectionModelExtensionPoint.SynchronizableContentsCollectionModelParameterParser
Class for parsing parameters of a
SynchronizableContentsCollectionModel |
Modifier and Type | Field and Description |
---|---|
private Context |
_context |
private Map<String,SynchronizableContentsCollectionModel> |
_sccModels |
private ServiceManager |
_smanager |
static String |
ROLE
Avalon Role
|
Constructor and Description |
---|
SynchronizeContentsCollectionModelExtensionPoint() |
Modifier and Type | Method and Description |
---|---|
void |
addExtension(String id,
String pluginName,
String featureName,
Configuration configuration)
Add an extension to this point.
|
protected void |
addModel(String pluginName,
Configuration configuration)
Add a synchronizable contents collection model
|
protected void |
configureParameters(SynchronizeContentsCollectionModelExtensionPoint.SynchronizableContentsCollectionModelParameterParser paramParser,
Configuration configuration,
String pluginName,
Map<String,Parameter<ParameterHelper.ParameterType>> parameters)
Configure a parameter to access the SynchronizableContentsCollection
|
void |
contextualize(Context context) |
void |
dispose() |
SynchronizableContentsCollectionModel |
getExtension(String id)
Returns the named extension
|
Set<String> |
getExtensionsIds()
Returns a Set containing the ids of all known extensions
|
boolean |
hasExtension(String id)
Returns true if the named extension exists
|
void |
initialize() |
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. |
void |
service(ServiceManager smanager) |
getLogger, setLogger
private Map<String,SynchronizableContentsCollectionModel> _sccModels
private ServiceManager _smanager
public SynchronizeContentsCollectionModelExtensionPoint()
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public void dispose()
dispose
in interface Disposable
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void addExtension(String id, String pluginName, String featureName, Configuration configuration) throws ConfigurationException
ExtensionPoint
addExtension
in interface ExtensionPoint<SynchronizableContentsCollectionModel>
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 addModel(String pluginName, Configuration configuration) throws ConfigurationException
pluginName
- The plugin nameconfiguration
- The configurationConfigurationException
- when a configuration problem occursprotected void configureParameters(SynchronizeContentsCollectionModelExtensionPoint.SynchronizableContentsCollectionModelParameterParser paramParser, Configuration configuration, String pluginName, Map<String,Parameter<ParameterHelper.ParameterType>> parameters) throws ConfigurationException
paramParser
- the parameter parser.configuration
- The parameter configuration.pluginName
- The plugin nameparameters
- The model parametersConfigurationException
- if configuration is incomplete or invalid.public void initializeExtensions() throws Exception
ExtensionPoint
addExtension()
calls.initializeExtensions
in interface ExtensionPoint<SynchronizableContentsCollectionModel>
Exception
- if something wrong occurspublic boolean hasExtension(String id)
ExtensionPoint
hasExtension
in interface ExtensionPoint<SynchronizableContentsCollectionModel>
id
- the unique id of the extensionpublic SynchronizableContentsCollectionModel getExtension(String id)
ExtensionPoint
getExtension
in interface ExtensionPoint<SynchronizableContentsCollectionModel>
id
- the unique id of the extensionpublic Set<String> getExtensionsIds()
ExtensionPoint
getExtensionsIds
in interface ExtensionPoint<SynchronizableContentsCollectionModel>