Class SessionFactory

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

public class SessionFactory extends 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 Details

    • SessionFactory

      public SessionFactory(Class<?> svcClass)
    • SessionFactory

      public SessionFactory(Factory f)
    • SessionFactory

      public SessionFactory(Class<?> svcClass, boolean createOnDemand)
    • SessionFactory

      public SessionFactory(Factory f, boolean createOnDemand)
  • Method Details

    • create

      public Object create(Exchange e) throws Throwable
      Creates the object that will be used for the invoke
      Specified by:
      create in interface Factory
      Throws:
      Throwable
    • release

      public void release(Exchange e, 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