public interface BootstrapContext
Environment
post-processing up to the point that the ApplicationContext
is prepared.
Provides lazy access to singletons that may be expensive to create, or need to be
shared before the ApplicationContext
is available.
Modifier and Type | Method and Description |
---|---|
<T> T |
get(Class<T> type)
Return an instance from the context, creating it if it hasn't been accessed
previously.
|
<T> T get(Class<T> type) throws IllegalStateException
T
- the instance typetype
- the instance typeIllegalStateException
- if the type has not been registered