public abstract class Container extends Object
| Constructor and Description |
|---|
Container() |
| Modifier and Type | Method and Description |
|---|---|
static Container |
instance() |
abstract <T> T |
lookup(String name,
Class<T> expected)
Retrieves the named object from the container.
|
public static Container instance()
public abstract <T> T lookup(String name, Class<T> expected) throws NameNotFoundException
name - the name of the object to look upexpected - the expected class of the objectNameNotFoundException - a minimal NameNotFoundException, do not expect many fields to be correctly filledCopyright © 2021 JBoss by Red Hat. All rights reserved.