org.apache.camel.impl
Class DefaultEndpointResolver<E>

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpointResolver<E>
All Implemented Interfaces:
EndpointResolver<E>

public class DefaultEndpointResolver<E>
extends Object
implements EndpointResolver<E>

An implementation of EndpointResolver that delegates to other EndpointResolver which are selected based on the uri prefix. The delegate EndpointResolver are associated with uri prefixes by adding a property file with the same uri prefix in the META-INF/services/org/apache/camel/EndpointResolver/ directory on the classpath.

Version:
$Revision: 520985 $

Constructor Summary
DefaultEndpointResolver()
           
 
Method Summary
 Component resolveComponent(CamelContext container, String uri)
          Resolves the component for a given uri or returns null if now component handles it.
 Endpoint<E> resolveEndpoint(CamelContext container, String uri)
          Resolves the endpoint for a given uri or returns null if no endpoint could be found
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEndpointResolver

public DefaultEndpointResolver()
Method Detail

resolveEndpoint

public Endpoint<E> resolveEndpoint(CamelContext container,
                                   String uri)
                            throws Exception
Description copied from interface: EndpointResolver
Resolves the endpoint for a given uri or returns null if no endpoint could be found

Specified by:
resolveEndpoint in interface EndpointResolver<E>
Throws:
Exception

resolveComponent

public Component resolveComponent(CamelContext container,
                                  String uri)
                           throws Exception
Description copied from interface: EndpointResolver
Resolves the component for a given uri or returns null if now component handles it.

Specified by:
resolveComponent in interface EndpointResolver<E>
Throws:
Exception


Copyright © 2007 Apache Software Foundation. All Rights Reserved.