Package org.apache.shiro.session.mgt
Interface SessionFactory
-
- All Known Implementing Classes:
SimpleSessionFactory
public interface SessionFactoryA simple factory class that instantiates concreteSessioninstances. This is mainly a mechanism to allow instances to be created at runtime if they need to be different the defaults. It is not used by end-users of the framework, but rather those configuring Shiro to work in an application, and is typically injected into theSecurityManageror aSessionManager.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SessioncreateSession(SessionContext initData)Creates a newSessioninstance based on the specified contextual initialization data.
-
-
-
Method Detail
-
createSession
Session createSession(SessionContext initData)
Creates a newSessioninstance based on the specified contextual initialization data.- Parameters:
initData- the initialization data to be used duringSessioncreation.- Returns:
- a new
Sessioninstance. - Since:
- 1.0
-
-