org.apache.cxf.service.invoker
Interface Factory

All Known Implementing Classes:
PerRequestFactory, PooledFactory, SessionFactory, SingletonFactory, SpringBeanFactory

public interface Factory

Represents an object factory. Used at invoke time to find the object that the invokation will use


Method Summary
 java.lang.Object create(Exchange e)
          Creates the object that will be used for the invoke
 void release(Exchange e, java.lang.Object o)
          Post invoke, this is called to allow the factory to release the object, store it, etc...
 

Method Detail

create

java.lang.Object create(Exchange e)
                        throws java.lang.Throwable
Creates the object that will be used for the invoke

Parameters:
e -
Returns:
Throws:
java.lang.Throwable

release

void release(Exchange e,
             java.lang.Object o)
Post invoke, this is called to allow the factory to release the object, store it, etc...

Parameters:
e -
o - object created from the create method


Apache CXF