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

Field Summary
protected static FactoryFinder COMPONENT_FACTORY
           
 
Constructor Summary
DefaultComponentResolver()
           
 
Method Summary
 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

COMPONENT_FACTORY

protected static final FactoryFinder COMPONENT_FACTORY
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


Copyright © 2009 Apache Software Foundation. All Rights Reserved.