Class 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 Detail

      • 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 Detail

      • 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