org.apache.camel.spring.spi
Class SpringComponentResolver

java.lang.Object
  extended by org.apache.camel.spring.spi.SpringComponentResolver
All Implemented Interfaces:
org.apache.camel.spi.ComponentResolver

public class SpringComponentResolver
extends Object
implements org.apache.camel.spi.ComponentResolver

An implementation of ComponentResolver which tries to find a Camel Component in the Spring ApplicationContext first; if its not there it defaults to the auto-discovery mechanism.

Version:
$Revision: 563665 $

Constructor Summary
SpringComponentResolver(org.springframework.context.ApplicationContext applicationContext, org.apache.camel.spi.ComponentResolver nextResolver)
           
 
Method Summary
 org.apache.camel.Component resolveComponent(String name, org.apache.camel.CamelContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringComponentResolver

public SpringComponentResolver(org.springframework.context.ApplicationContext applicationContext,
                               org.apache.camel.spi.ComponentResolver nextResolver)
Method Detail

resolveComponent

public org.apache.camel.Component resolveComponent(String name,
                                                   org.apache.camel.CamelContext context)
                                            throws Exception
Specified by:
resolveComponent in interface org.apache.camel.spi.ComponentResolver
Throws:
Exception


Copyright © 2007 Apache Software Foundation. All Rights Reserved.