Class SupplierRegistry

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:
LocalBeanRegistry

public class SupplierRegistry extends SimpleRegistry
Used for storing beans that are supplied via a Supplier.

Camel will cache the result from the supplier from first lookup (singleton scope). If you do not need cached then use SimpleRegistry.bindAsPrototype(String, Class, Supplier) instead. To bind a bean as a supplier, then use the Registry.bind(String, Class, Supplier) method.

See Also:
  • Constructor Details

    • SupplierRegistry

      public SupplierRegistry()
  • Method Details