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, consumerExecutor, container, context, correlationId, currentState, executorFactory, INITIALIZED, knownExchanges, mbeanName, poller, polling, providerExecutor, running, transactionManager, workManagerCreated
 
Constructor Summary
WSNComponent()
           
 
Method Summary
 BaseServiceUnitManager createServiceUnitManager()
           
protected  void doInit()
           
protected  void doShutDown()
           
protected  java.util.List getConfiguredEndpoints()
           
 javax.jms.ConnectionFactory getConnectionFactory()
           
 JmsCreatePullPoint getCreatePullPoint()
           
protected  java.lang.Class[] getEndpointClasses()
           
protected  java.lang.Object getExtensionMBean()
           
 JbiNotificationBroker getNotificationBroker()
           
 java.lang.Object[] getRequests()
           
 org.springframework.core.io.Resource[] getResources()
           
 org.w3c.dom.Document getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
           
protected  javax.jms.ConnectionFactory lookupConnectionFactory()
           
 void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
           
 void setRequests(java.lang.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, 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 java.lang.Object getExtensionMBean()
                                      throws java.lang.Exception
Overrides:
getExtensionMBean in class AsyncBaseLifeCycle
Throws:
java.lang.Exception

createServiceUnitManager

public BaseServiceUnitManager createServiceUnitManager()
Overrides:
createServiceUnitManager in class DefaultComponent

getConnectionFactory

public javax.jms.ConnectionFactory getConnectionFactory()

setConnectionFactory

public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)

getConfiguredEndpoints

protected java.util.List getConfiguredEndpoints()
Overrides:
getConfiguredEndpoints in class DefaultComponent

getEndpointClasses

protected java.lang.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 java.lang.Object[] getRequests()
Returns:
Returns the requests.

setRequests

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

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

getServiceDescription

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

lookupConnectionFactory

protected javax.jms.ConnectionFactory lookupConnectionFactory()
                                                       throws javax.naming.NamingException
Throws:
javax.naming.NamingException


Copyright © 2005-2011 FuseSource. All Rights Reserved.