|
||||||||||
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<String,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 |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
SimpleRegistry()
|
Method Summary | ||
---|---|---|
|
findByType(Class<T> type)
Finds services in the registry by their type. |
|
|
findByTypeWithName(Class<T> type)
Finds services in the registry by their type. |
|
Object |
lookup(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(String name,
Class<T> type)
Looks up a service in the registry, returning the service or null if it could not be found. |
|
Object |
lookupByName(String name)
Looks up a service in the registry based purely on name, returning the service or null if it could not be found. |
|
|
lookupByNameAndType(String name,
Class<T> type)
Looks up a service in the registry, returning the service or null if it could not be found. |
|
|
lookupByType(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 Object lookupByName(String name)
Registry
lookupByName
in interface Registry
name
- the name of the service
public <T> T lookupByNameAndType(String name, Class<T> type)
Registry
lookupByNameAndType
in interface Registry
name
- the name of the servicetype
- the type of the required service
public <T> Map<String,T> findByTypeWithName(Class<T> type)
Registry
JndiRegistry
.
findByTypeWithName
in interface Registry
type
- the type of the registered services
public <T> Set<T> findByType(Class<T> type)
Registry
JndiRegistry
.
findByType
in interface Registry
type
- the type of the registered services
public Object lookup(String name)
Registry
lookup
in interface Registry
name
- the name of the service
public <T> T lookup(String name, Class<T> type)
Registry
lookup
in interface Registry
name
- the name of the servicetype
- the type of the required service
public <T> Map<String,T> lookupByType(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 |