|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.lang.SimpleServiceRegistry
public class SimpleServiceRegistry
Simple service registry implementation that selects the first service that is type assignable from the list of service instance supplied to the registry constructor.
Constructor Summary | |
---|---|
SimpleServiceRegistry(Object... args)
Creation of a new service registry with no parent. |
|
SimpleServiceRegistry(ServiceRegistry parent,
Object... args)
Creation of a new service registry with no parent. |
Method Summary | ||
---|---|---|
|
lookup(Class<T> type)
Matches a service in the registry with the supplied type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleServiceRegistry(Object... args)
args
- an ordered sequence of thread-safe servicespublic SimpleServiceRegistry(ServiceRegistry parent, Object... args)
parent
- an optional fallback registryargs
- an ordered sequence of thread-safe servicesMethod Detail |
---|
public <T> T lookup(Class<T> type)
lookup
in interface ServiceRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |