org.apache.camel.impl.osgi
Class Activator.BundleComponentResolver

java.lang.Object
  extended by org.apache.camel.impl.osgi.Activator.BaseService
      extended by org.apache.camel.impl.osgi.Activator.BaseResolver<Component>
          extended by org.apache.camel.impl.osgi.Activator.BundleComponentResolver
All Implemented Interfaces:
ComponentResolver
Enclosing class:
Activator

protected static class Activator.BundleComponentResolver
extends Activator.BaseResolver<Component>
implements ComponentResolver


Field Summary
 
Fields inherited from class org.apache.camel.impl.osgi.Activator.BaseService
bundle
 
Constructor Summary
Activator.BundleComponentResolver(org.osgi.framework.Bundle bundle, Map<String,String> components)
           
 
Method Summary
 void register()
           
 Component resolveComponent(String name, CamelContext context)
          Attempts to resolve the component for the given URI
 
Methods inherited from class org.apache.camel.impl.osgi.Activator.BaseResolver
createInstance, createInstance
 
Methods inherited from class org.apache.camel.impl.osgi.Activator.BaseService
doRegister, doRegister, doRegister, doRegister, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator.BundleComponentResolver

public Activator.BundleComponentResolver(org.osgi.framework.Bundle bundle,
                                         Map<String,String> components)
Method Detail

resolveComponent

public Component resolveComponent(String name,
                                  CamelContext context)
                           throws Exception
Description copied from interface: ComponentResolver
Attempts to resolve the component for the given URI

Specified by:
resolveComponent in interface ComponentResolver
Parameters:
name - the component name to resolve
context - the context to load the component if it can be resolved
Returns:
the component which is added to the context or null if it cannot be resolved
Throws:
Exception - is thrown if the the component could not be loaded

register

public void register()
Specified by:
register in class Activator.BaseService


Apache Camel