Class Container

    • Constructor Detail

      • Container

        public Container()
    • Method Detail

      • instance

        public static Container instance()
      • lookup

        public abstract <T> T lookup​(String name,
                                     Class<T> expected)
                              throws NameNotFoundException
        Retrieves the named object from the container. Note that it is unspecifed what the lifecycle of this object is.
        Parameters:
        name - the name of the object to look up
        expected - the expected class of the object
        Returns:
        the object bound to name
        Throws:
        NameNotFoundException - a minimal NameNotFoundException, do not expect many fields to be correctly filled