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 Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if this container contains the specified component
    Returns the list of the ids of the components managed in this container.
    <T> T
    resolve(String id, Class<T> componentClass)
    Resolve a component from its id and class.
  • Method Details

    • 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