org.apache.servicemix.components.util
Class PojoLifecycleAdaptor

java.lang.Object
  extended by org.apache.servicemix.components.util.PojoLifecycleAdaptor
All Implemented Interfaces:
javax.jbi.component.ComponentLifeCycle

public class PojoLifecycleAdaptor
extends Object
implements javax.jbi.component.ComponentLifeCycle

Adapts a POJO to a ComponentLifeCycle without performing any activation

Version:
$Revision: 564374 $

Constructor Summary
PojoLifecycleAdaptor(Object pojo, QName service, String endpoint)
           
 
Method Summary
 javax.jbi.component.ComponentContext getContext()
           
 ObjectName getExtensionMBeanName()
           
 Object getPojo()
           
 void init(javax.jbi.component.ComponentContext ctx)
           
 void setExtensionMBeanName(ObjectName extensionMBeanName)
           
 void shutDown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojoLifecycleAdaptor

public PojoLifecycleAdaptor(Object pojo,
                            QName service,
                            String endpoint)
Method Detail

getExtensionMBeanName

public ObjectName getExtensionMBeanName()
Specified by:
getExtensionMBeanName in interface javax.jbi.component.ComponentLifeCycle

init

public void init(javax.jbi.component.ComponentContext ctx)
          throws javax.jbi.JBIException
Specified by:
init in interface javax.jbi.component.ComponentLifeCycle
Throws:
javax.jbi.JBIException

shutDown

public void shutDown()
              throws javax.jbi.JBIException
Specified by:
shutDown in interface javax.jbi.component.ComponentLifeCycle
Throws:
javax.jbi.JBIException

start

public void start()
           throws javax.jbi.JBIException
Specified by:
start in interface javax.jbi.component.ComponentLifeCycle
Throws:
javax.jbi.JBIException

stop

public void stop()
          throws javax.jbi.JBIException
Specified by:
stop in interface javax.jbi.component.ComponentLifeCycle
Throws:
javax.jbi.JBIException

getPojo

public Object getPojo()

setExtensionMBeanName

public void setExtensionMBeanName(ObjectName extensionMBeanName)

getContext

public javax.jbi.component.ComponentContext getContext()


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