Interface BeanRegistry

All Superinterfaces:
BeanDirectory
All Known Implementing Classes:
LinkedBeanRegistry, SimpleBeanRegistry

public interface BeanRegistry extends BeanDirectory
Register components by id and look them up.
Author:
Rob Gordon.
  • Method Details

    • register

      void register(String id, Object component) throws InvalidIdException
      Register an object. The id should not contain reserved characters.
      Parameters:
      id - The id of the object.
      component - The object.
      Throws:
      InvalidIdException
    • remove

      void remove(Object component)
      Remove a component from the registry if it exists.
      Parameters:
      component - The component.