org.apache.camel.script.osgi
Class Activator

java.lang.Object
  extended by org.apache.camel.script.osgi.Activator
All Implemented Interfaces:
org.apache.camel.impl.osgi.tracker.BundleTrackerCustomizer, org.osgi.framework.BundleActivator

public class Activator
extends Object
implements org.osgi.framework.BundleActivator, org.apache.camel.impl.osgi.tracker.BundleTrackerCustomizer


Nested Class Summary
protected static class Activator.BundleScriptEngineResolver
           
static interface Activator.ScriptEngineResolver
           
 
Field Summary
static String META_INF_SERVICES_DIR
           
static String SCRIPT_ENGINE_SERVICE_FILE
           
 
Constructor Summary
Activator()
           
 
Method Summary
 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 start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

META_INF_SERVICES_DIR

public static final String META_INF_SERVICES_DIR
See Also:
Constant Field Values

SCRIPT_ENGINE_SERVICE_FILE

public static final String SCRIPT_ENGINE_SERVICE_FILE
See Also:
Constant Field Values
Constructor Detail

Activator

public Activator()
Method Detail

getBundleContext

public static org.osgi.framework.BundleContext getBundleContext()

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
Exception

addingBundle

public Object addingBundle(org.osgi.framework.Bundle bundle,
                           org.osgi.framework.BundleEvent event)
Specified by:
addingBundle in interface org.apache.camel.impl.osgi.tracker.BundleTrackerCustomizer

modifiedBundle

public void modifiedBundle(org.osgi.framework.Bundle bundle,
                           org.osgi.framework.BundleEvent event,
                           Object object)
Specified by:
modifiedBundle in interface org.apache.camel.impl.osgi.tracker.BundleTrackerCustomizer

removedBundle

public void removedBundle(org.osgi.framework.Bundle bundle,
                          org.osgi.framework.BundleEvent event,
                          Object object)
Specified by:
removedBundle in interface org.apache.camel.impl.osgi.tracker.BundleTrackerCustomizer

resolveScriptEngine

public static ScriptEngine resolveScriptEngine(String scriptEngineName)
                                        throws org.osgi.framework.InvalidSyntaxException
Throws:
org.osgi.framework.InvalidSyntaxException

registerScriptEngines

protected void registerScriptEngines(org.osgi.framework.Bundle bundle,
                                     List<Activator.BundleScriptEngineResolver> resolvers)


Apache Camel