public class Activator extends Object implements org.osgi.framework.BundleActivator, org.osgi.util.tracker.BundleTrackerCustomizer, org.osgi.framework.ServiceListener
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Activator.BundleScriptEngineResolver |
static interface |
Activator.ScriptEngineResolver |
| Modifier and Type | Field and Description |
|---|---|
static String |
META_INF_SERVICES_DIR |
static String |
SCRIPT_ENGINE_SERVICE_FILE |
| Constructor and Description |
|---|
Activator() |
| Modifier and Type | Method and Description |
|---|---|
Object |
addingBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event) |
static org.osgi.framework.BundleContext |
getBundleContext() |
void |
modifiedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object) |
protected void |
registerScriptEngines(org.osgi.framework.Bundle bundle,
List<Activator.BundleScriptEngineResolver> resolvers) |
void |
removedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object) |
static ScriptEngine |
resolveScriptEngine(String scriptEngineName) |
void |
serviceChanged(org.osgi.framework.ServiceEvent event) |
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
public static final String META_INF_SERVICES_DIR
public static final String SCRIPT_ENGINE_SERVICE_FILE
public static org.osgi.framework.BundleContext getBundleContext()
public void start(org.osgi.framework.BundleContext context)
throws Exception
start in interface org.osgi.framework.BundleActivatorExceptionpublic void stop(org.osgi.framework.BundleContext context)
throws Exception
stop in interface org.osgi.framework.BundleActivatorExceptionpublic Object addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
addingBundle in interface org.osgi.util.tracker.BundleTrackerCustomizerpublic void modifiedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object)
modifiedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizerpublic void removedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object object)
removedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizerpublic static ScriptEngine resolveScriptEngine(String scriptEngineName) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionprotected void registerScriptEngines(org.osgi.framework.Bundle bundle,
List<Activator.BundleScriptEngineResolver> resolvers)
public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerApache Camel