org.apache.camel.impl
Class DefaultComponentResolver<E extends Exchange>

java.lang.Object
  extended by 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 $

Field Summary
protected static FactoryFinder COMPONENT_FACTORY
           
 
Constructor Summary
DefaultComponentResolver()
           
 
Method Summary
 Component<E> resolveComponent(String name, CamelContext context)
          Attempts to resolve the component for the given URI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_FACTORY

protected static final FactoryFinder COMPONENT_FACTORY
Constructor Detail

DefaultComponentResolver

public DefaultComponentResolver()
Method Detail

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 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 can not be resolved


Apache CAMEL