public class Extender extends Object implements org.osgi.util.tracker.BundleTrackerCustomizer, org.osgi.util.tracker.ServiceTrackerCustomizer
Modifier and Type | Class and Description |
---|---|
protected static class |
Extender.BundleScriptEngineResolver |
static interface |
Extender.ScriptEngineResolver |
Constructor and Description |
---|
Extender(org.osgi.framework.BundleContext context) |
Modifier and Type | Method and Description |
---|---|
Object |
addingBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event) |
Object |
addingService(org.osgi.framework.ServiceReference reference) |
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
void |
close() |
static org.osgi.framework.BundleContext |
getBundleContext() |
void |
modifiedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object arg2) |
void |
modifiedService(org.osgi.framework.ServiceReference reference,
Object service) |
void |
open() |
protected void |
registerScriptEngines(org.osgi.framework.Bundle bundle,
List<Extender.BundleScriptEngineResolver> resolvers) |
void |
removedBundle(org.osgi.framework.Bundle bundle,
org.osgi.framework.BundleEvent event,
Object arg2) |
void |
removedService(org.osgi.framework.ServiceReference reference,
Object service) |
static ScriptEngine |
resolveScriptEngine(String scriptEngineName) |
public static org.osgi.framework.BundleContext getBundleContext()
public void open()
public void close()
public Object addingService(org.osgi.framework.ServiceReference reference)
addingService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
public void modifiedService(org.osgi.framework.ServiceReference reference, Object service)
modifiedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
public void removedService(org.osgi.framework.ServiceReference reference, Object service)
removedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
public Object addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
addingBundle
in interface org.osgi.util.tracker.BundleTrackerCustomizer
public void modifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object arg2)
modifiedBundle
in interface org.osgi.util.tracker.BundleTrackerCustomizer
public void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object arg2)
removedBundle
in interface org.osgi.util.tracker.BundleTrackerCustomizer
public void bundleChanged(org.osgi.framework.BundleEvent event)
public static ScriptEngine resolveScriptEngine(String scriptEngineName) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxException
protected void registerScriptEngines(org.osgi.framework.Bundle bundle, List<Extender.BundleScriptEngineResolver> resolvers)
Copyright © 2015. All rights reserved.