declare a singleton dynamicmap with a binder . maps must be defined in a guice module before they can be bound : dynamicmap.mapof binder , new typeliteral < thing < bar > > ; bind new typeliteral < thing < bar > > . annotatedwith exports.named `` foo '' . to impl.class ; concode_field_sep String pluginName concode_elem_sep String exportName concode_elem_sep ConcurrentMap<NamePair,Provider<T>> items concode_field_sep String getExportName concode_elem_sep Iterator<Entry<T>> iterator concode_elem_sep SortedSet<String> plugins concode_elem_sep int hashCode concode_elem_sep T get concode_elem_sep boolean equals concode_elem_sep String getPluginName concode_elem_sep DynamicMap<T> emptyMap concode_elem_sep Provider<T> getProvider concode_elem_sep SortedMap<String,Provider<T>> byPlugin
void function ( Binder arg0 , TypeLiteral < T > arg1 ) { @ SuppressWarnings ( "srini_string" ) Key < DynamicMap < T >> loc0 = ( Key < DynamicMap < T >> ) Key . get ( Types . newParameterizedType ( DynamicMap . class , arg1 . getType ( ) ) ) ; arg0 . bind ( loc0 ) . toProvider ( new DynamicMapProvider < > ( arg1 ) ) . in ( Scopes . SINGLETON ) ; }