Package de.hybris.platform.jalo
Class JaloSessionFactory
- java.lang.Object
-
- de.hybris.platform.jalo.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 aJaloSession. The configured target class can be gathered usinggetTargetClass(). The used factory can be configured via the Spring configuration with bean id "jalosession", seeyempty-spring.xmlfor example configuration.- Since:
- 3.1-u1
-
-
Constructor Summary
Constructors Constructor Description JaloSessionFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JaloSessioncreateInstance()static JaloSessioncreateWithSessionClass(java.lang.Class<JaloSession> sessionClass)JaloSessiongetObject()java.lang.ClassgetObjectType()java.lang.Class<JaloSession>getTargetClass()booleanisSingleton()voidsetTargetClassName(java.lang.String className)Sets the target class theJaloSessionwill be of.
-
-
-
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:
getObjectin interfaceorg.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:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<JaloSession>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<JaloSession>
-
setTargetClassName
public void setTargetClassName(java.lang.String className)
Sets the target class theJaloSessionwill be of. Given String has to be a valid class name and the named class has to be instance ofJaloSession.- Parameters:
className- name of class to use for instantiation
-
getTargetClass
public java.lang.Class<JaloSession> getTargetClass()
-
-