org.apache.servicemix.bean
Class BeanComponent
java.lang.Object
org.apache.servicemix.common.AsyncBaseLifeCycle
org.apache.servicemix.common.DefaultComponent
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: $
| 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 |
| 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 |
BeanComponent
public BeanComponent()
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.