Interface ImmutableBeanGroup<K,​V extends BeanInstance<K>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Indicates that the caller is finished with the bean group, and that it should close any resources.
      V getBeanInstance​(K id)
      Returns the bean instance with the specified identifier.
      K getId()
      Returns the unique identifier of this bean group.
      boolean isEmpty()
      Indicates whether or not this bean group contains and bean instances.
    • Method Detail

      • getId

        K getId()
        Returns the unique identifier of this bean group.
        Returns:
        a unique identifier
      • isEmpty

        boolean isEmpty()
        Indicates whether or not this bean group contains and bean instances.
        Returns:
        true, if this bean group is empty, false otherwise
      • getBeanInstance

        V getBeanInstance​(K id)
        Returns the bean instance with the specified identifier.
        Parameters:
        id - a bean instance identifier
        Returns:
        the requested bean instance, or null, if no such bean instance exists.
      • close

        void close()
        Indicates that the caller is finished with the bean group, and that it should close any resources.
        Specified by:
        close in interface AutoCloseable