org.apache.servicemix.common
Class BaseComponent

java.lang.Object
  extended by org.apache.servicemix.common.BaseComponent
All Implemented Interfaces:
javax.jbi.component.Component, ServiceMixComponent

Deprecated.

@Deprecated
public abstract class BaseComponent
extends java.lang.Object
implements ServiceMixComponent

Base class for a component.

Since:
3.0
Version:
$Revision$
Author:
Guillaume Nodet

Field Summary
protected  BaseLifeCycle lifeCycle
          Deprecated.  
protected  org.slf4j.Logger logger
          Deprecated.  
protected  Registry registry
          Deprecated.  
protected  BaseServiceUnitManager serviceUnitManager
          Deprecated.  
 
Constructor Summary
BaseComponent()
          Deprecated.  
 
Method Summary
protected  BaseLifeCycle createLifeCycle()
          Deprecated. Create the life cycle object.
protected  Registry createRegistry()
          Deprecated.  
protected  BaseServiceUnitManager createServiceUnitManager()
          Deprecated. Create the service unit manager.
 javax.jbi.component.ComponentContext getComponentContext()
          Deprecated.  
 java.lang.String getComponentName()
          Deprecated.  
 Container getContainer()
          Deprecated.  
 javax.xml.namespace.QName getEPRElementName()
          Deprecated.  
 org.apache.servicemix.executors.Executor getExecutor(javax.jbi.messaging.MessageExchange.Role role)
          Deprecated. Shortcut to retrieve this component's executor.
 javax.jbi.component.ComponentLifeCycle getLifeCycle()
          Deprecated.  
 org.slf4j.Logger getLogger()
          Deprecated.  
 Registry getRegistry()
          Deprecated.  
 org.w3c.dom.Document getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
          Deprecated.  
 javax.jbi.component.ServiceUnitManager getServiceUnitManager()
          Deprecated.  
 java.lang.Object getSmx3Container()
          Deprecated.  
 boolean isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange)
          Deprecated.  
 boolean isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange)
          Deprecated.  
 void prepareExchange(javax.jbi.messaging.MessageExchange exchange, Endpoint endpoint)
          Deprecated. Prepare an exchange sent from the given endpoint.
 javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
          Deprecated.  
 
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
handleExchange, prepareShutdown
 

Field Detail

logger

protected final transient org.slf4j.Logger logger
Deprecated. 

lifeCycle

protected BaseLifeCycle lifeCycle
Deprecated. 

registry

protected Registry registry
Deprecated. 

serviceUnitManager

protected BaseServiceUnitManager serviceUnitManager
Deprecated. 
Constructor Detail

BaseComponent

public BaseComponent()
Deprecated. 
Method Detail

getLifeCycle

public javax.jbi.component.ComponentLifeCycle getLifeCycle()
Deprecated. 
Specified by:
getLifeCycle in interface javax.jbi.component.Component

getServiceUnitManager

public javax.jbi.component.ServiceUnitManager getServiceUnitManager()
Deprecated. 
Specified by:
getServiceUnitManager in interface javax.jbi.component.Component

getServiceDescription

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

isExchangeWithConsumerOkay

public boolean isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint,
                                          javax.jbi.messaging.MessageExchange exchange)
Deprecated. 
Specified by:
isExchangeWithConsumerOkay in interface javax.jbi.component.Component

isExchangeWithProviderOkay

public boolean isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint,
                                          javax.jbi.messaging.MessageExchange exchange)
Deprecated. 
Specified by:
isExchangeWithProviderOkay in interface javax.jbi.component.Component

resolveEndpointReference

public javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
Deprecated. 
Specified by:
resolveEndpointReference in interface javax.jbi.component.Component

createLifeCycle

protected BaseLifeCycle createLifeCycle()
Deprecated. 
Create the life cycle object. Derived classes should override this method to be able to use a custom life cycle implementation.

Returns:
a life cycle object

createServiceUnitManager

protected BaseServiceUnitManager createServiceUnitManager()
Deprecated. 
Create the service unit manager. Derived classes should override this method and return a BaseServiceUnitManager so that the component is able to handle service unit deployment.

Returns:
a service unit manager

createRegistry

protected Registry createRegistry()
Deprecated. 

getComponentContext

public javax.jbi.component.ComponentContext getComponentContext()
Deprecated. 
Specified by:
getComponentContext in interface ServiceMixComponent
Returns:
Returns the components context

getComponentName

public java.lang.String getComponentName()
Deprecated. 
Specified by:
getComponentName in interface ServiceMixComponent
Returns:
Returns the name of the component

getLogger

public org.slf4j.Logger getLogger()
Deprecated. 
Specified by:
getLogger in interface ServiceMixComponent
Returns:
Returns the logger.

getRegistry

public Registry getRegistry()
Deprecated. 
Specified by:
getRegistry in interface ServiceMixComponent
Returns:
Returns the registry.

getExecutor

public org.apache.servicemix.executors.Executor getExecutor(javax.jbi.messaging.MessageExchange.Role role)
Deprecated. 
Shortcut to retrieve this component's executor.

Specified by:
getExecutor in interface ServiceMixComponent
Parameters:
role - the role to use
Returns:
the executor for this component

getSmx3Container

public java.lang.Object getSmx3Container()
Deprecated. 
Specified by:
getSmx3Container in interface ServiceMixComponent
Returns:
the servicemix 3 container if deployed into it

prepareExchange

public void prepareExchange(javax.jbi.messaging.MessageExchange exchange,
                            Endpoint endpoint)
                     throws javax.jbi.messaging.MessagingException
Deprecated. 
Description copied from interface: ServiceMixComponent
Prepare an exchange sent from the given endpoint. The caller need to send / sendSync the exchange.

Specified by:
prepareExchange in interface ServiceMixComponent
Parameters:
exchange - the exchange to send
endpoint - the endpoint sending the exchange
Throws:
javax.jbi.messaging.MessagingException

getEPRElementName

public javax.xml.namespace.QName getEPRElementName()
Deprecated. 
Specified by:
getEPRElementName in interface ServiceMixComponent
Returns:
the QName of the element used in EPR

getContainer

public Container getContainer()
Deprecated. 
Specified by:
getContainer in interface ServiceMixComponent
Returns:
the JBI container


Copyright © 2005-2012 FuseSource. All Rights Reserved.