|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hammurapi.util.SingletonChainingContext<ST>
public class SingletonChainingContext<ST>
| Field Summary |
|---|
| Fields inherited from interface com.hammurapi.util.Context |
|---|
INSTANCE |
| Constructor Summary | |
|---|---|
SingletonChainingContext(Class<ST> type,
ST service,
Context chain)
|
|
| Method Summary | ||
|---|---|---|
void |
bind(String name,
Object obj)
Binds named object. |
|
|
lookup(Class<T> serviceClass)
Looks up single object (service) by type. |
|
Object |
lookup(String name)
Looks up object by name. |
|
|
lookupAll(Class<T> serviceClass)
Looks up all services of given type. |
|
|
register(Class<? super T> type,
T service)
Registers service. |
|
Object |
unbind(String name)
Unbinds named object. |
|
|
unregister(Class<? super T> type,
T service)
Removes service registration. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingletonChainingContext(Class<ST> type,
ST service,
Context chain)
| Method Detail |
|---|
public void bind(String name,
Object obj)
MutableContext
bind in interface MutableContextname - Object name.obj - Object reference. Cannot be null.
public <T> void register(Class<? super T> type,
T service)
MutableContext
register in interface MutableContextT - Service implementation type.type - Service type.service - Service instance.public Object unbind(String name)
MutableContext
unbind in interface MutableContext
public <T> void unregister(Class<? super T> type,
T service)
MutableContext
unregister in interface MutableContextpublic Object lookup(String name)
Context
lookup in interface Contextname - Object name.
public <T> T lookup(Class<T> serviceClass)
Context
lookup in interface ContextT - Service type.serviceClass - Requested service type.
public <T> Iterator<T> lookupAll(Class<T> serviceClass)
Context
lookupAll in interface ContextT - Service type.serviceClass - Requested service type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||