org.apache.servicemix.wsn.component
Class WSNComponent

java.lang.Object
  extended by org.apache.servicemix.common.AsyncBaseLifeCycle
      extended by org.apache.servicemix.common.DefaultComponent
          extended by org.apache.servicemix.wsn.component.WSNComponent
All Implemented Interfaces:
javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle, ServiceMixComponent
Direct Known Subclasses:
WSNSpringComponent

public class WSNComponent
extends DefaultComponent


Nested Class Summary
 class WSNComponent.WSNEndpointManager
           
 
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
WSNComponent()
           
 
Method Summary
 BaseServiceUnitManager createServiceUnitManager()
           
protected  void doInit()
           
protected  void doShutDown()
           
protected  List getConfiguredEndpoints()
           
 ConnectionFactory getConnectionFactory()
           
 JmsCreatePullPoint getCreatePullPoint()
           
protected  Class[] getEndpointClasses()
           
protected  Object getExtensionMBean()
           
 JbiNotificationBroker getNotificationBroker()
           
 Object[] getRequests()
           
 org.springframework.core.io.Resource[] getResources()
           
 Document getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
           
protected  ConnectionFactory lookupConnectionFactory()
           
 void setConnectionFactory(ConnectionFactory connectionFactory)
           
 void setRequests(Object[] requests)
           
 void setResources(org.springframework.core.io.Resource[] resources)
           
 
Methods inherited from class org.apache.servicemix.common.DefaultComponent
addEndpoint, asList, createRegistry, doStart, doStop, getComponentContext, getComponentName, getEPRElementName, getEPRProtocols, getEPRServiceName, getLifeCycle, getLogger, getRegistry, 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, getExtensionMBeanName, getKnownExchanges, getResolvedEPR, 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

WSNComponent

public WSNComponent()
Method Detail

getNotificationBroker

public JbiNotificationBroker getNotificationBroker()

getCreatePullPoint

public JmsCreatePullPoint getCreatePullPoint()

getExtensionMBean

protected Object getExtensionMBean()
                            throws Exception
Overrides:
getExtensionMBean in class AsyncBaseLifeCycle
Throws:
Exception

createServiceUnitManager

public BaseServiceUnitManager createServiceUnitManager()
Overrides:
createServiceUnitManager in class DefaultComponent

getConnectionFactory

public ConnectionFactory getConnectionFactory()

setConnectionFactory

public void setConnectionFactory(ConnectionFactory connectionFactory)

getConfiguredEndpoints

protected List getConfiguredEndpoints()
Overrides:
getConfiguredEndpoints in class DefaultComponent

getEndpointClasses

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

getResources

public org.springframework.core.io.Resource[] getResources()
Returns:
Returns the endpoints.

setResources

public void setResources(org.springframework.core.io.Resource[] resources)
Parameters:
resources - The resources to set.

getRequests

public Object[] getRequests()
Returns:
Returns the requests.

setRequests

public void setRequests(Object[] requests)
Parameters:
requests - The requests to set.

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

getServiceDescription

public Document getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
Specified by:
getServiceDescription in interface javax.jbi.component.Component
Overrides:
getServiceDescription in class DefaultComponent

lookupConnectionFactory

protected ConnectionFactory lookupConnectionFactory()
                                             throws NamingException
Throws:
NamingException


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