org.apache.servicemix.cxfbc
Class CxfBcComponent

java.lang.Object
  extended by org.apache.servicemix.common.AsyncBaseLifeCycle
      extended by org.apache.servicemix.common.BaseLifeCycle
          extended by org.apache.servicemix.common.DefaultComponent
              extended by org.apache.servicemix.cxfbc.CxfBcComponent
All Implemented Interfaces:
Component, ComponentLifeCycle, ServiceMixComponent, MessageExchangeListener

public class CxfBcComponent
extends DefaultComponent

Author:
gnodet

Field Summary
 
Fields inherited from class org.apache.servicemix.common.DefaultComponent
logger, registry, serviceUnit, serviceUnitManager
 
Fields inherited from class org.apache.servicemix.common.AsyncBaseLifeCycle
channel, component, context, correlationId, currentState, executor, executorFactory, INITIALIZED, mbeanName, poller, polling, processors, running, transactionManager, workManagerCreated
 
Constructor Summary
CxfBcComponent()
           
 
Method Summary
protected  void doInit()
           
protected  void doShutDown()
           
 org.apache.cxf.Bus getBus()
           
 String getBusConfig()
           
 CxfBcConfiguration getConfiguration()
           
protected  List getConfiguredEndpoints()
           
protected  Class[] getEndpointClasses()
           
 CxfBcEndpointType[] getEndpoints()
           
 void setBusConfig(String busConfig)
          Specifies the location of the CXF configuraiton file used to configure the CXF bus.
 void setConfiguration(CxfBcConfiguration configuration)
           
 void setEndpoints(CxfBcEndpointType[] endpoints)
          Specifies the list of endpoints hosted by the component.
 
Methods inherited from class org.apache.servicemix.common.DefaultComponent
addEndpoint, asList, createRegistry, createServiceUnitManager, doStart, doStop, getComponentContext, getComponentName, getEPRElementName, getEPRProtocols, getEPRServiceName, getLifeCycle, getLogger, getRegistry, getServiceDescription, getServiceUnit, getServiceUnitManager, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, removeEndpoint, resolveEndpointReference, validateEndpoint
 
Methods inherited from class org.apache.servicemix.common.BaseLifeCycle
onMessageExchange
 
Methods inherited from class org.apache.servicemix.common.AsyncBaseLifeCycle
createExecutorFactory, createExtensionMBeanName, exceptionShouldRollbackTx, findExecutorFactory, getContext, getCurrentState, getExecutor, getExtensionMBean, getExtensionMBeanName, getResolvedEPR, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, pollDeliveryChannel, prepareConsumerExchange, processExchange, processExchangeInTx, sendConsumerExchange, sendConsumerExchange, setComponent, setCurrentState, 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
getExecutor, prepareConsumerExchange, sendConsumerExchange
 

Constructor Detail

CxfBcComponent

public CxfBcComponent()
Method Detail

getEndpoints

public CxfBcEndpointType[] getEndpoints()
Returns:
the endpoints

setEndpoints

public void setEndpoints(CxfBcEndpointType[] endpoints)
Specifies the list of endpoints hosted by the component.

Parameters:
endpoints - the endpoints to set

getConfiguredEndpoints

protected List getConfiguredEndpoints()
Specified by:
getConfiguredEndpoints in class DefaultComponent

getEndpointClasses

protected Class[] getEndpointClasses()
Specified by:
getEndpointClasses in class DefaultComponent

doInit

protected void doInit()
               throws Exception
Overrides:
doInit in class DefaultComponent
Throws:
Exception

doShutDown

protected void doShutDown()
                   throws Exception
Overrides:
doShutDown in class DefaultComponent
Throws:
Exception

getBus

public org.apache.cxf.Bus getBus()

setBusConfig

public void setBusConfig(String busConfig)
Specifies the location of the CXF configuraiton file used to configure the CXF bus. This allows you to access features like JMS runtime behavior and WS-RM. The configuration set at the component level is superceeded by any configuration specified by an endpoint.

Parameters:
busCfg - a string containing the relative path to the configuration file

getBusConfig

public String getBusConfig()

setConfiguration

public void setConfiguration(CxfBcConfiguration configuration)

getConfiguration

public CxfBcConfiguration getConfiguration()


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.