org.apache.camel.impl
Class DefaultComponentResolver<E extends Exchange>
java.lang.Object
org.apache.camel.impl.DefaultComponentResolver<E>
- All Implemented Interfaces:
- ComponentResolver<E>
public class DefaultComponentResolver<E extends Exchange>
- extends Object
- implements ComponentResolver<E>
The default implementation of ComponentResolver
which tries to find
components by using the URI scheme prefix and searching for a file of the URI
scheme name in the META-INF/services/org/apache/camel/component/
directory on the classpath.
- Version:
- $Revision: 739202 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPONENT_FACTORY
protected static final FactoryFinder COMPONENT_FACTORY
DefaultComponentResolver
public DefaultComponentResolver()
resolveComponent
public Component<E> resolveComponent(String name,
CamelContext context)
- Description copied from interface:
ComponentResolver
- Attempts to resolve the component for the given URI
- Specified by:
resolveComponent
in interface ComponentResolver<E extends Exchange>
- 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 can not be resolved
Apache CAMEL