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 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
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JaloSessionstatic JaloSessioncreateWithSessionClass(Class<JaloSession> sessionClass) booleanvoidsetTargetClassName(String className) Sets the target class theJaloSessionwill be of.
-
Constructor Details
-
JaloSessionFactory
public JaloSessionFactory()
-
-
Method Details
-
createWithSessionClass
- Throws:
Exception
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<JaloSession>- Throws:
Exception
-
createInstance
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<JaloSession>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<JaloSession>
-
setTargetClassName
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
-