Package org.apache.cayenne.di
Interface MapBuilder<T>
- Type Parameters:
T
- A type of the map values.
public interface MapBuilder<T>
A binding builder for map configurations. Creates a parameterized map of type <String, T>.
- Since:
- 3.1
-
Method Summary
Modifier and Type Method Description void
in(Scope scope)
MapBuilder<T>
put(String key, Class<? extends T> interfaceType)
MapBuilder<T>
put(String key, T value)
MapBuilder<T>
putAll(Map<String,T> map)
void
withoutScope()
-
Method Details
-
put
- Throws:
DIRuntimeException
-
put
- Throws:
DIRuntimeException
-
putAll
- Throws:
DIRuntimeException
-
in
-
withoutScope
void withoutScope()- Since:
- 4.1
-