org.apache.camel.component.bean
Class BeanComponent

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultComponent
          extended by org.apache.camel.component.bean.BeanComponent
All Implemented Interfaces:
org.apache.camel.Component, org.apache.camel.Service, org.springframework.context.ApplicationContextAware

public class BeanComponent
extends org.apache.camel.impl.DefaultComponent
implements org.springframework.context.ApplicationContextAware

An alternative to the POJO Component which implements the Bean Component which will look up the URI in the Spring ApplicationContext and use that to handle message dispatching.

Version:
$Revision: 1.1 $

Constructor Summary
BeanComponent()
           
BeanComponent(org.springframework.context.ApplicationContext applicationContext)
           
 
Method Summary
protected  org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map parameters)
           
 org.springframework.context.ApplicationContext getApplicationContext()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class org.apache.camel.impl.DefaultComponent
createEndpoint, createExecutorService, doStart, doStop, getCamelContext, getExecutorService, setCamelContext, setExecutorService
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
getThreadName, isStarted, isStopped, isStopping, nextThreadCounter, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanComponent

public BeanComponent()

BeanComponent

public BeanComponent(org.springframework.context.ApplicationContext applicationContext)
Method Detail

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext()

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

createEndpoint

protected org.apache.camel.Endpoint createEndpoint(String uri,
                                                   String remaining,
                                                   Map parameters)
                                            throws Exception
Specified by:
createEndpoint in class org.apache.camel.impl.DefaultComponent
Throws:
Exception


Copyright © 2007 Apache Software Foundation. All Rights Reserved.