Class JaloSessionFactory

java.lang.Object
de.hybris.platform.jalo.JaloSessionFactory
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<JaloSession>

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

    • JaloSessionFactory

      public JaloSessionFactory()
  • Method Details

    • createWithSessionClass

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

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

      protected JaloSession createInstance() throws Exception
      Throws:
      Exception
    • getObjectType

      public 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(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 Class<JaloSession> getTargetClass()