|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContextRegistry<C,R>
Manages instances for a context. This class is only useful for
defining new implementations of AbstractContextScope
.
Method Summary | ||
---|---|---|
|
get(R registry,
com.google.inject.Key<T> key,
java.lang.String keyString)
Looks up an InstanceProvider for a key (either directly or using the precalculated key.toString() value) in a registry object, returning null if not found. |
|
|
putIfAbsent(R registry,
com.google.inject.Key<T> key,
java.lang.String keyString,
InstanceProvider<T> creator)
Looks up an InstanceProvider for a key (either directly or using the precalculated key.toString() value) in a registry object, returning null if not found, otherwise returning the existing value. |
|
R |
registryFor(C context)
Returns the registry object associated with the given context. |
|
|
remove(R registry,
com.google.inject.Key<T> key,
java.lang.String keyString,
InstanceProvider<T> creator)
Removes the registry entry for the given key (either directly or using the precalculated key.toString() value) from a registry object if the registered value is identical to creator . |
Method Detail |
---|
R registryFor(C context)
<T> InstanceProvider<T> get(R registry, com.google.inject.Key<T> key, java.lang.String keyString)
<T> InstanceProvider<T> putIfAbsent(R registry, com.google.inject.Key<T> key, java.lang.String keyString, InstanceProvider<T> creator)
<T> boolean remove(R registry, com.google.inject.Key<T> key, java.lang.String keyString, InstanceProvider<T> creator)
creator
.
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |