org.apache.servicemix.cxfbc
Class CxfBcComponent

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

public class CxfBcComponent
extends DefaultComponent

Author:
gnodet

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, consumerExecutor, container, context, correlationId, currentState, executorFactory, INITIALIZED, knownExchanges, mbeanName, poller, polling, providerExecutor, running, transactionManager, workManagerCreated
 
Constructor Summary
CxfBcComponent()
           
 
Method Summary
protected  void doInit()
           
protected  void doShutDown()
           
 java.util.Map<java.lang.String,org.apache.cxf.Bus> getAllBuses()
           
 java.lang.Object getAuthenticationService()
           
 org.apache.cxf.Bus getBus()
           
 java.lang.String getBusConfig()
           
 CxfBcConfiguration getConfiguration()
           
protected  java.util.List getConfiguredEndpoints()
           
protected  java.lang.Class[] getEndpointClasses()
           
 CxfBcEndpointType[] getEndpoints()
           
 void setAuthenticationService(java.lang.Object authenticationService)
           
 void setBusConfig(java.lang.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, 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, getResolvedEPR, getSmx3Container, handleExchange, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, onMessageExchange, pollDeliveryChannel, prepareExchange, prepareShutdown, 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

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 java.util.List getConfiguredEndpoints()
Overrides:
getConfiguredEndpoints in class DefaultComponent

getEndpointClasses

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

doInit

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

doShutDown

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

getBus

public org.apache.cxf.Bus getBus()

getAllBuses

public java.util.Map<java.lang.String,org.apache.cxf.Bus> getAllBuses()

setBusConfig

public void setBusConfig(java.lang.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 java.lang.String getBusConfig()

setConfiguration

public void setConfiguration(CxfBcConfiguration configuration)

getConfiguration

public CxfBcConfiguration getConfiguration()

getAuthenticationService

public java.lang.Object getAuthenticationService()
Returns:
the authenticationService

setAuthenticationService

public void setAuthenticationService(java.lang.Object authenticationService)
Parameters:
authenticationService - the authenticationService to set


Copyright © 2005-2011 FuseSource. All Rights Reserved.