| org.directwebremoting.guice.AbstractSimpleContextScope
AbstractSimpleContextScope | abstract public class AbstractSimpleContextScope extends AbstractContextScope (Code) | | A specialization of
AbstractContextScope for the case when
the context identifier itself can serve as a string-keyed instance registry
using synchronization on the context to provide atomic put-if-absent
and remove-specific-value behavior.
author: Tim Peierls [tim at peierls dot net] |
Method Summary | |
abstract public C | get() | abstract public Object | get(C registry, String keyString) | public InstanceProvider<T> | get(C registry, Key<T> key, String keyString) | abstract public void | put(C registry, String keyString, Object creator) | public void | put(C registry, Key<T> key, String keyString, InstanceProvider<T> creator) | public InstanceProvider<T> | putIfAbsent(C registry, Key<T> key, String keyString, InstanceProvider<T> creator) | public C | registryFor(C context) | public boolean | remove(C registry, Key<T> key, String keyString, InstanceProvider<T> creator) |
AbstractSimpleContextScope | protected AbstractSimpleContextScope(Class<C> type, String scopeName)(Code) | | |
get | abstract public C get()(Code) | | |
registryFor | public C registryFor(C context)(Code) | | |
|
|