public class PepperOSGiRunner extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
static String |
ARG_COMMAND_LINE_PARAMS
params passed to this application
|
static String |
ARG_SELFTEST
argument on command line call to determine, that pepper should make a
self test
|
static String |
DIR_CONF
extension of where to find plugins and resources
|
static String |
DIR_PLUGINS
extension of where to find plugins and resources
|
static String |
ENV_PEPPER_WORKFLOW_FILE
name of environment variable, which is supposed to contain the workflow
description file
|
static String |
PROP_TEST_DISABLED |
Constructor and Description |
---|
PepperOSGiRunner() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
Method is called by OSGi framework, when bundle is activated.
|
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
Method is called by OSGi framework, when bundle is deactivated.
|
Pepper |
getPepper()
Returns Pepper registered
Pepper object. |
void |
run() |
void |
setPepper(Pepper pepperConverter)
Sets the
Pepper object to do the conversion task. |
void |
unsetPepper(Pepper pepperConverter)
Unsets the
Pepper object to do the conversion task. |
public static final String PROP_TEST_DISABLED
public static final String ENV_PEPPER_WORKFLOW_FILE
public static final String DIR_PLUGINS
public static final String DIR_CONF
public static final String ARG_COMMAND_LINE_PARAMS
public static final String ARG_SELFTEST
public void unsetPepper(Pepper pepperConverter)
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.pepperConverter
- public void setPepper(Pepper pepperConverter)
Pepper
object to do the conversion task. This method can
be called automatically by the OSGi declarative services framework or
manually.pepperConverter
- public Pepper getPepper()
Pepper
object. Registered either
automatically by OSGi or manually, both by calling
setPepper(Pepper)
.Pepper
object.public void run() throws PepperException
run
in interface Runnable
PepperException
protected void activate(org.osgi.service.component.ComponentContext componentContext)
componentContext
- reference to the OSGi environmentprotected void deactivate(org.osgi.service.component.ComponentContext componentContext)
componentContext
- reference to the OSGi environmentCopyright © 2009–2019 Humboldt-Universität zu Berlin, INRIA. All rights reserved.