public abstract class ConverterPluginManager
extends com.streamscape.repository.types.AbstractSemanticFactory
Title: Service Event Fabric Core
Description: Defines a manager that controls Converter Plugins.
Copyright: Copyright (c) 2012
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
Modifier and Type | Method and Description |
---|---|
ConverterPlugin |
createConverterPlugin(java.lang.String name)
Instantiates specified converter plugin.
|
ConverterPlugin |
createConverterPlugin(java.lang.String name,
java.lang.ClassLoader loader)
Instantiates specified converter plugin using provided Class Loader.
|
boolean |
existsConverterPlugin(java.lang.String name)
Checks if the specified converter plugin exists.
|
ConverterPluginDescriptor |
getConverterPluginDescriptor(java.lang.String name)
Returns a configuration object corresponding to the specified converter plugin.
|
void |
init() |
java.util.List |
listConverterPlugins()
Returns the list of names of all registered converter plugins.
|
void |
registerConverterPlugin(ConverterPluginDescriptor descriptor)
Registers a new converter plugin.
|
void |
registerConverterPlugin(java.lang.String name,
java.lang.String className,
java.lang.String inboundSemanticType,
java.lang.String outboundSemanticType,
java.lang.String description)
Registers a new converter plugin.
|
void |
unregisterConverterPlugin(java.lang.String name)
Unregisters the specified converter plugin.
|
void |
updateConverterPluginDescriptor(ConverterPluginDescriptor configuration)
Updates the specified configuration of existing converter plugin in the Repository.
|
clone, getSerialVersionUID
public void init() throws ConverterPluginManagerException
ConverterPluginManagerException
public ConverterPlugin createConverterPlugin(java.lang.String name, java.lang.ClassLoader loader) throws ConverterPluginManagerException
name
- the name of the converter pluginloader
- the class loader for Converter Plugin class loadingConverterPluginManagerException
- if the specified module does not exist exists or
if some error occurs during instantiationpublic ConverterPlugin createConverterPlugin(java.lang.String name) throws ConverterPluginManagerException
name
- the name of the converter plugin *ConverterPluginManagerException
- if the specified module does not exist exists or
if some error occurs during instantiationpublic void registerConverterPlugin(java.lang.String name, java.lang.String className, java.lang.String inboundSemanticType, java.lang.String outboundSemanticType, java.lang.String description) throws ConverterPluginManagerException
name
- the name of the converter pluginclassName
- the implementing class of the plugininboundSemanticType
- the semantic type of the inbound objectoutboundSemanticType
- the semantic type of the outbound objectdescription
- the description of the pluginConverterPluginManagerException
- if the specified plugin already exists or
if some error occurs in the Repository.public void registerConverterPlugin(ConverterPluginDescriptor descriptor) throws ConverterPluginManagerException
descriptor
- the descriptor of the converter pluginConverterPluginManagerException
- if the specified plugin already exists or
if some error occurs in the Repository.public void unregisterConverterPlugin(java.lang.String name) throws ConverterPluginManagerException
name
- the name of the converter pluginConverterPluginManagerException
- if some error occurred during removal from the repositorypublic ConverterPluginDescriptor getConverterPluginDescriptor(java.lang.String name)
name
- the converter plugin namenull
if this does not exist.public boolean existsConverterPlugin(java.lang.String name)
name
- the name of the plugin to be checkedtrue
if the specified plugin exists, false
otherwisepublic java.util.List listConverterPlugins()
public void updateConverterPluginDescriptor(ConverterPluginDescriptor configuration) throws ConverterPluginManagerException
configuration
- the converter plugin descriptor to be savedConverterPluginManagerException
- if the specified converter does not exist or
if some error occurs in the RepositoryCopyright © 2015-2024 StreamScape Technologies. All rights reserved.