Constructor and Description |
---|
ServiceKey() |
Modifier and Type | Method and Description |
---|---|
<T> void |
generate(Class<T> type,
String name,
Consumer<com.google.inject.Key<T>> keys)
Generate at least one named key for the provided type.
|
public <T> void generate(Class<T> type, String name, Consumer<com.google.inject.Key<T>> keys)
T
- Service type.type
- Service type.name
- Service name.keys
- Key callback. Invoked once with a named key, and optionally again with an unamed
key.Copyright © 2017. All rights reserved.