Interface Container

  • All Known Subinterfaces:
    ComponentSpace
    All Known Implementing Classes:
    ComponentSpaceWritable

    public interface Container
    The Container interface defines a universal container for the components. Each component is identified by an id.
    Author:
    pchretien
    • Method Detail

      • contains

        boolean contains​(String id)
        Returns true if this container contains the specified component
        Parameters:
        id - Id of the component
        Returns:
        true if the component is already registered.
      • resolve

        <T> T resolve​(String id,
                      Class<T> componentClass)
        Resolve a component from its id and class.
        Parameters:
        id - Id of the component
        componentClass - Type of the component
        Returns:
        Component
      • keySet

        Set<String> keySet()
        Returns the list of the ids of the components managed in this container.
        Returns:
        list of ids