public class SqlTablesInit extends AbstractLogEnabled implements Init, Serviceable, Configurable, PluginAware
| Modifier and Type | Class and Description |
|---|---|
private static class |
SqlTablesInit.InitScript |
| Modifier and Type | Field and Description |
|---|---|
protected String |
_dataSourceId
The data source identifer
|
protected String |
_pluginName
Plugin name
|
protected Set<SqlTablesInit.InitScript> |
_scripts
The set of configured table init scripts
|
protected SourceResolver |
_sourceResolver
Source resolver
|
protected SQLDataSourceManager |
_sqlDataSourceManager
SQL data source manager
|
| Constructor and Description |
|---|
SqlTablesInit() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration configuration) |
void |
init()
Method to be implemented by user Init class.
|
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, setupLoggerprotected String _pluginName
protected String _dataSourceId
protected Set<SqlTablesInit.InitScript> _scripts
protected SQLDataSourceManager _sqlDataSourceManager
protected SourceResolver _sourceResolver
public SqlTablesInit()
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAwaresetPluginInfo in interface PluginAwarepluginName - 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 ServiceableServiceExceptionpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic void init() throws Exception
Init