Interface Registry

    • Method Detail

      • bind

        void bind​(String id,
                  Class<?> type,
                  Object bean)
           throws RuntimeCamelException
        Binds the bean to the repository (if possible).

        Binding by id and type allows to bind multiple entries with the same id but with different type. If the bean is CamelContextAware then the registry will automatic inject the context if possible.

        Parameters:
        id - the id of the bean
        type - the type of the bean to associate the binding
        bean - the bean
        Throws:
        RuntimeCamelException - is thrown if binding is not possible
      • wrap

        default Object wrap​(Object value)
        Strategy to wrap the value to be stored in the registry.
        Parameters:
        value - the value
        Returns:
        the value to store