Class SimpleRegistry
java.lang.Object
- All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, Cloneable, Map<String, Map<Class<?>,Object>>, org.apache.camel.spi.BeanRepository, org.apache.camel.spi.Registry
- Direct Known Subclasses:
SupplierRegistry
public class SimpleRegistry
extends LinkedHashMap<String, Map<Class<?>,Object>>
implements org.apache.camel.spi.Registry, Closeable
A
Map-based registry.
Favour using DefaultRegistry instead of this.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidbindAsPrototype(String id, Class<?> type, Supplier<Object> bean) voidclose()<T> Set<T> findByType(Class<T> type) findByTypeWithName(Class<T> type) lookupByName(String name) <T> TlookupByNameAndType(String name, Class<T> type) voidMethods inherited from class LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesMethods inherited from class HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class AbstractMap
equals, hashCode, toStringMethods inherited from interface org.apache.camel.spi.BeanRepository
findSingleByType, mandatoryFindSingleByType, unwrapMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from interface org.apache.camel.spi.Registry
bind, bind, wrap
-
Constructor Details
-
SimpleRegistry
public SimpleRegistry()
-
-
Method Details
-
lookupByName
-
lookupByNameAndType
-
findByTypeWithName
-
findByType
-
bind
-
bind
-
bind
-
bind
-
bindAsPrototype
-
unbind
- Specified by:
unbindin interfaceorg.apache.camel.spi.Registry
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-