public class DefaultPluginService extends Object implements IPluginService
IPlugin interface.| Modifier and Type | Field and Description |
|---|---|
private static org.apache.log4j.Logger |
logger
Custom class logger.
|
private static DefaultPluginService |
pluginService
The singleton reference.
|
private ServiceLoader<IPlugin> |
serviceLoader
The service loader for the
IPlugins. |
| Modifier | Constructor and Description |
|---|---|
private |
DefaultPluginService()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultPluginService |
getInstance()
Gets a singleton instance of
DefaultPluginService. |
Iterator<IPlugin> |
getPlugins()
Gets all plugins on the class path.
|
void |
initPlugins()
Initialize the plugin.
|
private static final org.apache.log4j.Logger logger
private static DefaultPluginService pluginService
private ServiceLoader<IPlugin> serviceLoader
IPlugins.public static DefaultPluginService getInstance()
DefaultPluginService.public Iterator<IPlugin> getPlugins()
IPluginServicegetPlugins in interface IPluginServiceIterator of IPluginspublic void initPlugins()
throws Exception
On calling IPlugin.init() the IPlugin registers its
operator with the default IPluginRegistry;
initPlugins in interface IPluginServiceExceptionCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.