Class Container
- java.lang.Object
-
- org.jboss.set.aphrodite.container.Container
-
public abstract class Container extends Object
- Author:
- Carlo de Wolf
-
-
Constructor Summary
Constructors Constructor Description Container()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Containerinstance()abstract <T> Tlookup(String name, Class<T> expected)Retrieves the named object from the 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 upexpected- 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
-
-