org.apache.camel.impl
Class DefaultComponentResolver

java.lang.Object
  extended by org.apache.camel.impl.DefaultComponentResolver
All Implemented Interfaces:
ComponentResolver

public class DefaultComponentResolver
extends Object
implements ComponentResolver

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: 16353 $

Field Summary
static String RESOURCE_PATH
           
 
Constructor Summary
DefaultComponentResolver()
           
 
Method Summary
protected  org.apache.commons.logging.Log getLog()
           
 Component 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

RESOURCE_PATH

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

DefaultComponentResolver

public DefaultComponentResolver()
Method Detail

resolveComponent

public Component 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
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

getLog

protected org.apache.commons.logging.Log getLog()


Apache CAMEL