|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.Object>
org.apache.camel.impl.SimpleRegistry
public class SimpleRegistry
A Map
-based registry.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
SimpleRegistry()
|
Method Summary | ||
---|---|---|
java.lang.Object |
lookup(java.lang.String name)
Looks up a service in the registry based purely on name, returning the service or null if it could not be found. |
|
|
lookup(java.lang.String name,
java.lang.Class<T> type)
Looks up a service in the registry, returning the service or null if it could not be found. |
|
|
lookupByType(java.lang.Class<T> type)
Looks up services in the registry by their type. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public SimpleRegistry()
Method Detail |
---|
public java.lang.Object lookup(java.lang.String name)
Registry
lookup
in interface Registry
name
- the name of the service
public <T> T lookup(java.lang.String name, java.lang.Class<T> type)
Registry
lookup
in interface Registry
name
- the name of the servicetype
- the type of the required service
public <T> java.util.Map<java.lang.String,T> lookupByType(java.lang.Class<T> type)
Registry
JndiRegistry
.
lookupByType
in interface Registry
type
- the type of the registered services
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |