|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.CompositeRegistry
public class CompositeRegistry
This registry will look up the object with the sequence of the registry list until it finds the Object.
| Constructor Summary | |
|---|---|
CompositeRegistry()
|
|
CompositeRegistry(java.util.List<Registry> registries)
|
|
| Method Summary | ||
|---|---|---|
void |
addRegistry(Registry registry)
|
|
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.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeRegistry()
public CompositeRegistry(java.util.List<Registry> registries)
| Method Detail |
|---|
public void addRegistry(Registry registry)
public <T> T lookup(java.lang.String name,
java.lang.Class<T> type)
Registry
lookup in interface Registryname - the name of the servicetype - the type of the required service
public java.lang.Object lookup(java.lang.String name)
Registry
lookup in interface Registryname - the name of the service
public <T> java.util.Map<java.lang.String,T> lookupByType(java.lang.Class<T> type)
RegistryJndiRegistry.
lookupByType in interface Registrytype - the type of the registered services
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||