public class SimplePluginDefConfig extends Object implements PluginDefConfig
PluginDefConfig.
Can be used as a simple PluginDefConfig within Node, NodeConfig
and NodeConfigTransferObject implementations.
See org.azyva.dragom.model.config.impl.simple from dragom-core.
| Constructor and Description |
|---|
SimplePluginDefConfig(Class<? extends NodePlugin> classNodePlugin,
String pluginId,
String pluginClass,
boolean indOnlyThisNode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends NodePlugin> |
getClassNodePlugin() |
String |
getPluginClass()
Returns the plugin implementation class name.
|
String |
getPluginId() |
boolean |
isOnlyThisNode() |
String |
toString() |
public SimplePluginDefConfig(Class<? extends NodePlugin> classNodePlugin, String pluginId, String pluginClass, boolean indOnlyThisNode)
classNodePlugin - Class of the NodePlugin.pluginId - ID of the plugin. Can be null.pluginClass - Name of the implementaiton class of the plugin. Can be null
to avoid inheritane.indOnlyThisNode - Indicates that this property applies specifically to the
NodeConfig on which it is defined, as opposed to being inherited by
child NodeConfig when interpreted by the Model.public Class<? extends NodePlugin> getClassNodePlugin()
getClassNodePlugin in interface PluginDefConfigpublic String getPluginId()
getPluginId in interface PluginDefConfigpublic String getPluginClass()
PluginDefConfignull to avoid inheritance.
This class must either implement PluginFactory or have a constructor
and implement the NodePlugin and the appropriate sub-interface
identified by PluginDefConfig.getClassNodePlugin().
getPluginClass in interface PluginDefConfigpublic boolean isOnlyThisNode()
isOnlyThisNode in interface PluginDefConfigNodeConfig on which it is defined, as opposed to being inherited by
child NodeConfig when interpreted by the Model.public String toString()
toString in class ObjectPluginDefConfig instance, in logs for example.Copyright © 2015–2016 AZYVA INC.. All rights reserved.