public class PrivateInternals_DynamicMapImpl<T> extends DynamicMap<T>
DynamicMap.Entry<T>
Modifier and Type | Method and Description |
---|---|
ReloadableRegistrationHandle<T> |
put(String pluginName,
com.google.inject.Key<T> key,
com.google.inject.Provider<T> item)
Store one new element that may be hot-replaceable in the future.
|
RegistrationHandle |
put(String pluginName,
String exportName,
com.google.inject.Provider<T> item)
Store one new element into the map.
|
byPlugin, emptyMap, get, iterator, mapOf, mapOf, plugins
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RegistrationHandle put(String pluginName, String exportName, com.google.inject.Provider<T> item)
pluginName
- unique name of the plugin providing the export.exportName
- name the plugin has exported the item as.item
- the item to add to the collection. Must not be null.public ReloadableRegistrationHandle<T> put(String pluginName, com.google.inject.Key<T> key, com.google.inject.Provider<T> item)
pluginName
- unique name of the plugin providing the export.key
- unique description from the item's Guice binding. This can be later obtained from
the registration handle to facilitate matching with the new equivalent instance during a
hot reload. The key must use an Export
annotation.item
- the item to add to the collection right now. Must not be null.