| org.directwebremoting.guice.ContextRegistry
ContextRegistry | public interface ContextRegistry (Code) | | Manages instances for a context. This class is only useful for
defining new implementations of
AbstractContextScope .
author: Tim Peierls [tim at peierls dot net] |
Method Summary | |
InstanceProvider<T> | get(R registry, Key<T> key, 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. | InstanceProvider<T> | putIfAbsent(R registry, Key<T> key, 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. | boolean | remove(R registry, Key<T> key, 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 . |
get | InstanceProvider<T> get(R registry, Key<T> key, String keyString)(Code) | | 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 | InstanceProvider<T> putIfAbsent(R registry, Key<T> key, String keyString, InstanceProvider<T> creator)(Code) | | 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.
|
registryFor | R registryFor(C context)(Code) | | Returns the registry object associated with the given context.
|
remove | boolean remove(R registry, Key<T> key, String keyString, InstanceProvider<T> creator)(Code) | | 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 .
whether the value was removed |
|
|