ikrs.util.session
Class DefaultSessionFactory<K,V,U>

java.lang.Object
  extended by ikrs.util.session.DefaultSessionFactory<K,V,U>
All Implemented Interfaces:
SessionFactory<K,V,U>

public class DefaultSessionFactory<K,V,U>
extends java.lang.Object
implements SessionFactory<K,V,U>

This is the default factory class for creating DefaultSessions.


Constructor Summary
DefaultSessionFactory(EnvironmentFactory<K,V> environmentFactory)
          Creates a new DefaultFactory with the given environmentFactory.
 
Method Summary
 DefaultSession<K,V,U> create(U userID)
          Creates a new Session with the configured type signature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSessionFactory

public DefaultSessionFactory(EnvironmentFactory<K,V> environmentFactory)
                      throws java.lang.NullPointerException
Creates a new DefaultFactory with the given environmentFactory.

Parameters:
environmentFactory - The environment factory to use to create new DefaultSessions (must not be null).
Throws:
java.lang.NullPointerException - If environmentFactory is null.
Method Detail

create

public DefaultSession<K,V,U> create(U userID)
Creates a new Session with the configured type signature.

Specified by:
create in interface SessionFactory<K,V,U>
Returns:
A newly created session.