Elektra 0.11.0
|
Java representation of an Elektra plugin. More...
Public Member Functions | |
String | getName () |
int | open (KeySet config, Key errorKey) |
Calls the plugin's open function. | |
int | get (KeySet keySet, Key parentKey) throws KDBException |
Calls the plugin's get function. | |
int | set (KeySet keySet, Key parentKey) throws KDBException |
Calls the set function of the plugin. | |
int | error (KeySet keySet, Key parentKey) |
Calls the error function of the plugin. | |
int | close (Key parentKey) |
Calls the close function of the plugin. | |
Java representation of an Elektra plugin.
@implNote because of interface inheritance, it is required that all methods (open, get, set, error, close) are implemented, even if they are not supported. Whether or not a method is supported, must be defined via the correspoding exports/has
key of the contract. Any method that is not supported, should simply be implemented as throw new UnsupportedOperationException()
. If get isn't supported, you must still implement it and return the contract, when the parent key is below (or the same as) PROCESS_CONTRACT_ROOT. For other parent keys, you can safely throw UnsupportedOperationException.
int org.libelektra.Plugin.close | ( | Key | parentKey | ) |
Calls the close function of the plugin.
parentKey | a key |
Implemented in org.libelektra.NativePlugin.
Calls the error function of the plugin.
keySet | a keyset |
parentKey | a key |
int org.libelektra.Plugin.get | ( | KeySet | keySet, |
Key | parentKey | ||
) | throws KDBException |
Calls the plugin's get function.
keySet | Key set to store the retrieved keys in |
parentKey | Parent key for retrieval |
KDBException | if Elektra could not set the key set |
String org.libelektra.Plugin.getName | ( | ) |
Calls the plugin's open function.
config | Plugin configuration key set |
errorKey | Used to store warnings and error information |
Implemented in org.libelektra.NativePlugin.
int org.libelektra.Plugin.set | ( | KeySet | keySet, |
Key | parentKey | ||
) | throws KDBException |
Calls the set function of the plugin.
keySet | a keyset |
parentKey | a key |
KDBException | when Elektra could not set the keyset |
Implemented in org.libelektra.NativePlugin.