Elektra  0.9.6
Public Member Functions | Static Public Attributes | List of all members
org.libelektra.Plugin Interface Reference

Java representation of an Elektra plugin. More...

Inheritance diagram for org.libelektra.Plugin:
Inheritance graph
[legend]

Public Member Functions

KeySet getConfig ()
 
String getName ()
 
int open (KeySet config, Key errorKey)
 Calls the plugin's open function. More...
 
int get (KeySet keySet, Key parentKey) throws KDBException
 Calls the plugin's get function. More...
 
int set (KeySet keySet, Key parentKey) throws KDBException
 Calls the set function of the plugin. More...
 
int error (KeySet keySet, Key parentKey)
 Calls the error function of the plugin. More...
 
int close (Key parentKey)
 Calls the close function of the plugin. More...
 

Static Public Attributes

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.
 

Detailed Description

Java representation of an Elektra plugin.

Member Function Documentation

◆ close()

int org.libelektra.Plugin.close ( Key  parentKey)

Calls the close function of the plugin.

Parameters
parentKeya key
Returns
the plugin's return value for close

Implemented in org.libelektra.NativePlugin.

◆ error()

int org.libelektra.Plugin.error ( KeySet  keySet,
Key  parentKey 
)

Calls the error function of the plugin.

Parameters
keySeta keyset
parentKeya key
Returns
the plugin's return value for error

◆ get()

int org.libelektra.Plugin.get ( KeySet  keySet,
Key  parentKey 
) throws KDBException

Calls the plugin's get function.

Parameters
keySetKey set to store the retrieved keys in
parentKeyParent key for retrieval
Exceptions
KDBExceptionif Elektra could not set the key set
Returns
the plugin's return value for get
See also
STATUS_SUCCESS
STATUS_ERROR

◆ getConfig()

KeySet org.libelektra.Plugin.getConfig ( )
Returns
KeySet containing the plugin configuration

Implemented in org.libelektra.NativePlugin.

◆ getName()

String org.libelektra.Plugin.getName ( )
Returns
Name of the plugin

◆ open()

int org.libelektra.Plugin.open ( KeySet  config,
Key  errorKey 
)

Calls the plugin's open function.

Parameters
configPlugin configuration key set
errorKeyUsed to store warnings and error information
Returns
Plugin's return value for open
See also
STATUS_SUCCESS
STATUS_ERROR

Implemented in org.libelektra.NativePlugin.

◆ set()

int org.libelektra.Plugin.set ( KeySet  keySet,
Key  parentKey 
) throws KDBException

Calls the set function of the plugin.

Parameters
keySeta keyset
parentKeya key
Exceptions
KDBExceptionwhen Elektra could not set the keyset
Returns
the plugin's return value for set

Implemented in org.libelektra.NativePlugin.


The documentation for this interface was generated from the following file: