$darkmode
Elektra 0.11.0
|
This class can be used to load native Elektra plugins to be used by Java directly. More...
Public Member Functions | |
NativePlugin (String pluginName, Key errorKey, KeySet modules) throws InstallationException | |
Constructor for loading an Elektra plugin. More... | |
NativePlugin (String pluginName, KeySet modules, KeySet config, Key errorKey) | |
Constructor for loading an Elektra plugin. More... | |
KeySet | getConfig () |
Gets the config which was used to configure the plugin. More... | |
int | open (KeySet conf, Key errorKey) |
Calls the plugin's open function. More... | |
int | kdbOpen (Key errorKey) |
Opens the session with the KeyDatabase. More... | |
int | close (Key errorKey) |
Closes the session with the Key database. More... | |
int | set (KeySet keySet, Key errorKey) throws KDBException |
Lets the plugin transform the given KeySet. More... | |
Public Member Functions inherited from org.libelektra.Plugin | |
String | getName () |
int | get (KeySet keySet, Key parentKey) throws KDBException |
Calls the plugin's get function. More... | |
int | error (KeySet keySet, Key parentKey) |
Calls the error function of the plugin. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from org.libelektra.Plugin | |
static final String | JNI_MODULE_CONTRACT_ROOT = "system:/elektra/modules/jni" |
This is the root key of the JNI plugin wrapping a Java plugin for use by Elektra. | |
static final String | PROCESS_CONTRACT_ROOT = "system:/elektra/modules/java" |
This is the root key of the process plugin wrapping a Java plugin for use by Elektra. | |
static final int | STATUS_ERROR = -1 |
Return value for plugin methods: An error occurred inside the plugin function. | |
static final int | STATUS_SUCCESS = 1 |
Return value for plugin methods: Everything went fine. | |
static final int | STATUS_NO_UPDATE = 0 |
Return value for plugin methods: Everything went fine and the function did not update the given key set / configuration. | |
This class can be used to load native Elektra plugins to be used by Java directly.
|
inline |
Constructor for loading an Elektra plugin.
pluginName | The plugin name |
errorKey | The errorKey |
modules | TODO #3754 add parameter description |
InstallationException | if the plugin does not exist |
IllegalStateException | if modules
errorKey
|
|
inline |
Constructor for loading an Elektra plugin.
pluginName | The plugin name |
errorKey | The errorKey |
config | TODO #3754 add parameter description and update other |
modules | TODO #3754 add parameter description and update other |
IllegalStateException | if modules
config
errorKey
|
|
inline |
Closes the session with the Key database.
errorKey | must be a valid key, e.g. created with Key.create() |
Implements org.libelektra.Plugin.
|
inline |
Gets the config which was used to configure the plugin.
|
inline |
Opens the session with the KeyDatabase.
errorKey | must be a valid key, e.g. created with Key.create() |
IllegalStateException | if errorKey
|
Calls the plugin's open function.
config | Plugin configuration key set |
errorKey | Used to store warnings and error information |
Implements org.libelektra.Plugin.
|
inline |
Lets the plugin transform the given KeySet.
keySet | The KeySet to transform |
errorKey | must be a valid key, e.g. created with Key.create() |
KDBException | if return value was -1 |
IllegalStateException | if keySet
errorKey
|
Implements org.libelektra.Plugin.