Pepper  3.6.0
A highly extensible plattform for conversion and manipulationoflinguisticdata.
org.corpus_tools.pepper.core.PepperOSGiRunner Class Reference

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...
 

Detailed Description

Only starts pepper-osgi-runner, if {@value #PROP_TEST_DISABLED} is not set or is set to false.

Author
Florian Zipser

Member Function Documentation

◆ activate()

void org.corpus_tools.pepper.core.PepperOSGiRunner.activate ( ComponentContext  componentContext)
protected

Method is called by OSGi framework, when bundle is activated.


This method is the entry point, for starting pepper inside an OSGi environment.

Parameters
componentContextreference to the OSGi environment

◆ deactivate()

void org.corpus_tools.pepper.core.PepperOSGiRunner.deactivate ( ComponentContext  componentContext)
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.

Parameters
componentContextreference to the OSGi environment

◆ getPepper()

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).

Returns
Pepper object.

◆ setPepper()

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.

Parameters
pepperConverter

◆ unsetPepper()

void org.corpus_tools.pepper.core.PepperOSGiRunner.unsetPepper ( Pepper  pepperConverter)

Unsets the Pepper object to do the conversion task.

Which means, it sets This method can be called automatically by the OSGi declarative services framework or manually.

Parameters
pepperConverter