ikrs.util
Class DefaultEnvironmentFactory<K,V>

java.lang.Object
  extended by ikrs.util.DefaultEnvironmentFactory<K,V>
All Implemented Interfaces:
EnvironmentFactory<K,V>

public class DefaultEnvironmentFactory<K,V>
extends java.lang.Object
implements EnvironmentFactory<K,V>

This is the default environment factory; it creates DefaultEnvironments.


Constructor Summary
DefaultEnvironmentFactory(MapFactory<K,V> mapFactory)
          Creates a new DefaultEnvironmentFactory.
DefaultEnvironmentFactory(MapFactory<K,V> mapFactory, boolean allowsMultipleChildNames)
          Creates a new DefaultEnvironmentFactory.
 
Method Summary
 Environment<K,V> create()
          Creates a new and empty environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEnvironmentFactory

public DefaultEnvironmentFactory(MapFactory<K,V> mapFactory)
                          throws java.lang.NullPointerException
Creates a new DefaultEnvironmentFactory.

Parameters:
mapFactory - The map factory to use to create new internal maps. Must not be null.
Throws:
java.lang.NullPointerException - If mapfactory is null.

DefaultEnvironmentFactory

public DefaultEnvironmentFactory(MapFactory<K,V> mapFactory,
                                 boolean allowsMultipleChildNames)
                          throws java.lang.NullPointerException
Creates a new DefaultEnvironmentFactory.

Parameters:
mapFactory - The map factory to use to create new internal maps. Must not be null.
allowsMultipleChildNames - The flag will be passed to the environments on creation.
Throws:
java.lang.NullPointerException - If mapfactory is null.
Method Detail

create

public Environment<K,V> create()
Creates a new and empty environment.

Specified by:
create in interface EnvironmentFactory<K,V>
Returns:
The new environment.