T - The DAO typepublic static class MapDaoRegister.Builder<T> extends Object
| Constructor and Description |
|---|
Builder()
creates an empty Builder
|
Builder(Map<String,? extends T> map)
Creates an Builder and copies all of the mappings for the
specified map to this builder
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public MapDaoRegister.Builder<T> put(String name, T dao)
name - the name of the DAOdao - the DAOpublic MapDaoRegister.Builder<T> putAll(Map<String,? extends T> map)
map - mapping to be stored in this builderpublic MapDaoRegister<T> build()
MapDaoRegisterCopyright © 2020. All rights reserved.