public class RootContext extends Context implements Closeable
itemByClass, itemByName| Constructor and Description |
|---|
RootContext() |
RootContext(FactoryCatalog factoryCatalog) |
RootContext(FactoryCatalog factoryCatalog,
List<Object> initialContents) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Same as shutdown
|
<T> T |
execute(Executable<T> exec) |
void |
execute(Executable2 exec)
Execute without any return value
|
protected Registration |
getRegistration(Class c)
Throws an exception if returning null
|
protected Registration |
getRegistration(String id) |
void |
put(Object... beans) |
void |
setRootContextLocator(RootContextLocator loc)
This weird little guy is to allow us to set this root context into a
locator which was defined in spring config before this one.
|
void |
shutdown() |
public RootContext()
public RootContext(FactoryCatalog factoryCatalog)
public RootContext(FactoryCatalog factoryCatalog, List<Object> initialContents)
public void put(Object... beans)
public void execute(Executable2 exec)
public <T> T execute(Executable<T> exec)
protected Registration getRegistration(Class c) throws IllegalArgumentException
getRegistration in class ContextIllegalArgumentExceptionprotected Registration getRegistration(String id)
getRegistration in class Contextpublic void shutdown()
public void setRootContextLocator(RootContextLocator loc)
loc - public void close()
close in interface Closeableclose in interface AutoCloseable