org.apache.camel.impl.osgi
Class Activator.BundleComponentResolver
java.lang.Object
org.apache.camel.impl.osgi.Activator.BaseService
org.apache.camel.impl.osgi.Activator.BaseResolver<Component>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Activator.BundleComponentResolver
public Activator.BundleComponentResolver(org.osgi.framework.Bundle bundle,
Map<String,String> components)
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 resolvecontext
- 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