public class SimpleRegistry extends HashMap<String,Object> implements org.apache.camel.spi.Registry
Map
-based registry.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SimpleRegistry() |
Modifier and Type | Method and Description |
---|---|
<T> Set<T> |
findByType(Class<T> type) |
<T> Map<String,T> |
findByTypeWithName(Class<T> type) |
Object |
lookupByName(String name) |
<T> T |
lookupByNameAndType(String name,
Class<T> type) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public SimpleRegistry()
public Object lookupByName(String name)
lookupByName
in interface org.apache.camel.spi.Registry
public <T> T lookupByNameAndType(String name, Class<T> type)
lookupByNameAndType
in interface org.apache.camel.spi.Registry
public <T> Map<String,T> findByTypeWithName(Class<T> type)
findByTypeWithName
in interface org.apache.camel.spi.Registry
public <T> Set<T> findByType(Class<T> type)
findByType
in interface org.apache.camel.spi.Registry
Apache Camel