org.milyn.scribe.register
Class MapDaoRegister.Builder<T>

java.lang.Object
  extended by org.milyn.scribe.register.MapDaoRegister.Builder<T>
Type Parameters:
T - The DAO type
Enclosing class:
MapDaoRegister<T>

public static class MapDaoRegister.Builder<T>
extends Object

Builds a MapDaoRegister object.

Author:
maurice.zeijen@smies.com

Constructor Summary
MapDaoRegister.Builder()
          creates an empty Builder
MapDaoRegister.Builder(Map<String,? extends T> map)
          Creates an Builder and copies all of the mappings for the specified map to this builder
 
Method Summary
 MapDaoRegister<T> build()
          Creates the MapDaoRegister and provides it with the DAO map
 MapDaoRegister.Builder<T> put(String name, T dao)
          Adds a DAO under a specified name
 MapDaoRegister.Builder<T> putAll(Map<String,? extends T> map)
          Copies all of the mappings for the specified map to this builder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapDaoRegister.Builder

public MapDaoRegister.Builder()
creates an empty Builder


MapDaoRegister.Builder

public MapDaoRegister.Builder(Map<String,? extends T> map)
Creates an Builder and copies all of the mappings for the specified map to this builder

Method Detail

put

public MapDaoRegister.Builder<T> put(String name,
                                     T dao)
Adds a DAO under a specified name

Parameters:
name - the name of the DAO
dao - the DAO
Returns:
the builder

putAll

public MapDaoRegister.Builder<T> putAll(Map<String,? extends T> map)
Copies all of the mappings for the specified map to this builder

Parameters:
map - mapping to be stored in this builder
Returns:
the builder

build

public MapDaoRegister<T> build()
Creates the MapDaoRegister and provides it with the DAO map

Returns:
the created MapDaoRegister


Copyright © 2011. All Rights Reserved.