org.apache.cxf.service.invoker
Class SessionFactory

java.lang.Object
  extended by org.apache.cxf.service.invoker.SessionFactory
All Implemented Interfaces:
Factory

public class SessionFactory
extends java.lang.Object
implements Factory

Creates a new instance for each session. This may have restrictions on what the bean can look like. For example, some session implementations require the beans to be Serializable


Constructor Summary
SessionFactory(java.lang.Class<?> svcClass)
           
SessionFactory(Factory f)
           
 
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...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionFactory

public SessionFactory(java.lang.Class<?> svcClass)

SessionFactory

public SessionFactory(Factory f)
Method Detail

create

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

Specified by:
create in interface Factory
Returns:
Throws:
java.lang.Throwable

release

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

Specified by:
release in interface Factory
o - object created from the create method


Apache CXF