Package io.milton.context
Class RootContext
java.lang.Object
io.milton.context.Context
io.milton.context.RootContext
- All Implemented Interfaces:
Contextual,Closeable,AutoCloseable
-
Field Summary
Fields inherited from class io.milton.context.Context
itemByClass, itemByName -
Constructor Summary
ConstructorsConstructorDescriptionRootContext(FactoryCatalog factoryCatalog) RootContext(FactoryCatalog factoryCatalog, List<Object> initialContents) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Same as shutdown<T> Texecute(Executable<T> exec) voidexecute(Executable2 exec) Execute without any return valueprotected RegistrationThrows an exception if returning nullprotected RegistrationvoidvoidThis weird little guy is to allow us to set this root context into a locator which was defined in spring config before this one.voidshutdown()
-
Constructor Details
-
RootContext
public RootContext() -
RootContext
-
RootContext
-
-
Method Details
-
put
-
execute
Execute without any return value -
execute
-
getRegistration
Throws an exception if returning null- Overrides:
getRegistrationin classContext- Throws:
IllegalArgumentException
-
getRegistration
- Overrides:
getRegistrationin classContext
-
shutdown
public void shutdown() -
setRootContextLocator
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.- Parameters:
loc-
-
close
public void close()Same as shutdown- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-