org.apache.servicemix.bean
Class BeanComponent

java.lang.Object
  extended by org.apache.servicemix.common.AsyncBaseLifeCycle
      extended by org.apache.servicemix.common.DefaultComponent
          extended by org.apache.servicemix.bean.BeanComponent
All Implemented Interfaces:
javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle, ServiceMixComponent, org.springframework.context.ApplicationContextAware

public class BeanComponent
extends DefaultComponent
implements org.springframework.context.ApplicationContextAware

A JBI component for binding beans to the JBI bus which work directly off of the JBI messages without requiring any SOAP Processing. If you require support for SOAP, JAX-WS, JSR-181 then you should use the servicemix-jsr181 module instead.

Version:
$Revision: $

Field Summary
 
Fields inherited from class org.apache.servicemix.common.DefaultComponent
lifeCycle, logger, registry, serviceUnit, serviceUnitManager
 
Fields inherited from class org.apache.servicemix.common.AsyncBaseLifeCycle
channel, component, container, context, correlationId, currentState, executor, executorFactory, INITIALIZED, knownExchanges, mbeanName, poller, polling, running, transactionManager, workManagerCreated
 
Constructor Summary
BeanComponent()
           
 
Method Summary
 void addEndpoint(BeanEndpoint endpoint)
          Adds a new component dynamically
 org.springframework.context.ApplicationContext getApplicationContext()
           
protected  List getConfiguredEndpoints()
           
protected  Class[] getEndpointClasses()
           
 BeanEndpoint[] getEndpoints()
           
protected  Endpoint getResolvedEPR(javax.jbi.servicedesc.ServiceEndpoint ep)
           
 String[] getSearchPackages()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setEndpoints(BeanEndpoint[] endpoints)
           
 void setSearchPackages(String[] searchPackages)
           
 
Methods inherited from class org.apache.servicemix.common.DefaultComponent
addEndpoint, asList, createRegistry, createServiceUnitManager, doInit, doShutDown, doStart, doStop, getComponentContext, getComponentName, getEPRElementName, getEPRProtocols, getEPRServiceName, getLifeCycle, getLogger, getRegistry, getServiceDescription, getServiceUnit, getServiceUnitManager, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, isKnownEndpoint, removeEndpoint, resolveEndpointReference, validateEndpoint
 
Methods inherited from class org.apache.servicemix.common.AsyncBaseLifeCycle
createExecutorFactory, createExtensionMBeanName, exceptionShouldRollbackTx, findExecutorFactory, getContainer, getContext, getCurrentState, getExecutor, getExecutorFactory, getExtensionMBean, getExtensionMBeanName, getKnownExchanges, getSmx3Container, handleExchange, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, onMessageExchange, pollDeliveryChannel, prepareExchange, prepareShutdown, processExchange, processExchangeInTx, setComponent, setCurrentState, setExecutor, setExecutorFactory, shutDown, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.servicemix.common.ServiceMixComponent
getContainer, getExecutor, getSmx3Container, handleExchange, prepareExchange, prepareShutdown
 

Constructor Detail

BeanComponent

public BeanComponent()
Method Detail

getEndpoints

public BeanEndpoint[] getEndpoints()

setEndpoints

public void setEndpoints(BeanEndpoint[] endpoints)

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

getSearchPackages

public String[] getSearchPackages()

setSearchPackages

public void setSearchPackages(String[] searchPackages)

getConfiguredEndpoints

protected List getConfiguredEndpoints()
Overrides:
getConfiguredEndpoints in class DefaultComponent

getEndpointClasses

protected Class[] getEndpointClasses()
Overrides:
getEndpointClasses in class DefaultComponent

getResolvedEPR

protected Endpoint getResolvedEPR(javax.jbi.servicedesc.ServiceEndpoint ep)
                           throws Exception
Overrides:
getResolvedEPR in class AsyncBaseLifeCycle
Throws:
Exception

addEndpoint

public void addEndpoint(BeanEndpoint endpoint)
                 throws Exception
Adds a new component dynamically

Throws:
Exception


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.