Pepper
3.6.0
A highly extensible plattform for conversion and manipulationoflinguisticdata.
|
Only starts pepper-osgi-runner, if {@value #PROP_TEST_DISABLED} is not set or is set to false. More...
Inherits Runnable.
Public Member Functions | |
void | unsetPepper (Pepper pepperConverter) |
Unsets the Pepper object to do the conversion task. More... | |
void | setPepper (Pepper pepperConverter) |
Sets the Pepper object to do the conversion task. More... | |
Pepper | getPepper () |
Returns Pepper registered Pepper object. More... | |
void | run () throws PepperException |
Static Public Attributes | |
static final String | PROP_TEST_DISABLED = "org.corpus_tools.pepper.disableTest" |
static final String | ENV_PEPPER_WORKFLOW_FILE = "PEPPER_TEST_WORKFLOW_FILE" |
name of environment variable, which is supposed to contain the workflow description file | |
static final String | DIR_PLUGINS = "/plugins" |
extension of where to find plugins and resources | |
static final String | DIR_CONF = "/conf" |
extension of where to find plugins and resources | |
static final String | ARG_COMMAND_LINE_PARAMS = "sun.java.command" |
params passed to this application | |
static final String | ARG_SELFTEST = "-selfTest" |
argument on command line call to determine, that pepper should make a self test | |
Protected Member Functions | |
void | activate (ComponentContext componentContext) |
Method is called by OSGi framework, when bundle is activated. More... | |
void | deactivate (ComponentContext componentContext) |
Method is called by OSGi framework, when bundle is deactivated. More... | |
Only starts pepper-osgi-runner, if {@value #PROP_TEST_DISABLED} is not set or is set to false.
|
protected |
Method is called by OSGi framework, when bundle is activated.
This method is the entry point, for starting pepper inside an OSGi environment.
componentContext | reference to the OSGi environment |
|
protected |
Method is called by OSGi framework, when bundle is deactivated.
This could happen, if the user deactivates the bundle manually or, the entire OSGi environment stopped.
This method currently does nothing.
componentContext | reference to the OSGi environment |
Pepper org.corpus_tools.pepper.core.PepperOSGiRunner.getPepper | ( | ) |
Returns Pepper registered Pepper object.
Registered either automatically by OSGi or manually, both by calling setPepper(Pepper).
void org.corpus_tools.pepper.core.PepperOSGiRunner.setPepper | ( | Pepper | pepperConverter | ) |
Sets the Pepper object to do the conversion task.
This method can be called automatically by the OSGi declarative services framework or manually.
pepperConverter |