org.ow2.jonas.ws.axis2.easybeans
Class EasybeansAxis2Invoker

java.lang.Object
  extended by org.ow2.jonas.ws.axis2.easybeans.EasybeansAxis2Invoker

public class EasybeansAxis2Invoker
extends Object

EasyBeans invoker that will take an instance from the pool, call the method and then put it back in the pool.

Author:
youchao

Constructor Summary
EasybeansAxis2Invoker(org.ow2.util.pool.api.Pool<org.ow2.easybeans.api.bean.EasyBeansSLSB,Long> pool)
          Build a new invoker for the given stateless' pool.
 
Method Summary
 Object getServiceObject()
          Creates and returns a service object
 void releaseServiceObject(Object obj)
          Called when the invoker is done with the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EasybeansAxis2Invoker

public EasybeansAxis2Invoker(org.ow2.util.pool.api.Pool<org.ow2.easybeans.api.bean.EasyBeansSLSB,Long> pool)
Build a new invoker for the given stateless' pool.

Parameters:
pool - the stateless' pool of the factory
Method Detail

getServiceObject

public Object getServiceObject()
Creates and returns a service object


releaseServiceObject

public void releaseServiceObject(Object obj)
Called when the invoker is done with the object. Replace the bean in pool.

Parameters:
context - CXF Exchange
obj - object to be released


Copyright © 2010 OW2 Consortium. All Rights Reserved.