Class JaloSessionFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean<JaloSession>

    public class JaloSessionFactory
    extends java.lang.Object
    implements org.springframework.beans.factory.FactoryBean<JaloSession>
    Factory for creating a JaloSession. The configured target class can be gathered using getTargetClass(). The used factory can be configured via the Spring configuration with bean id "jalosession", see yempty-spring.xml for example configuration.
    Since:
    3.1-u1
    • Constructor Detail

      • JaloSessionFactory

        public JaloSessionFactory()
    • Method Detail

      • createWithSessionClass

        public static JaloSession createWithSessionClass​(java.lang.Class<JaloSession> sessionClass)
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getObject

        public JaloSession getObject()
                              throws java.lang.Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<JaloSession>
        Throws:
        java.lang.Exception
      • createInstance

        protected JaloSession createInstance()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getObjectType

        public java.lang.Class getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<JaloSession>
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean<JaloSession>
      • setTargetClassName

        public void setTargetClassName​(java.lang.String className)
        Sets the target class the JaloSession will be of. Given String has to be a valid class name and the named class has to be instance of JaloSession.
        Parameters:
        className - name of class to use for instantiation
      • getTargetClass

        public java.lang.Class<JaloSession> getTargetClass()