Package com.foreach.across.test
Class AcrossTestContext
java.lang.Object
com.foreach.across.core.context.registry.DefaultAcrossContextBeanRegistry
com.foreach.across.test.AcrossTestContext
- All Implemented Interfaces:
AcrossContextBeanRegistry,Closeable,AutoCloseable
- Direct Known Subclasses:
AcrossTestWebContext
This class is a wrapper around a bootstrapped
AcrossContext and provides methods
for easy querying of said context and its modules. This class also implements Closeable.
Calling close() will close both the AcrossContext and (if provided) the additional
parent ApplicationContext.
Instances of this class should not be created manually but through one of the builders.
See AcrossTestBuilders.
Public constructors will be removes in a future release.
- Author:
- Arne Vandamme
- See Also:
-
Field Summary
Fields inherited from interface com.foreach.across.core.context.registry.AcrossContextBeanRegistry
BEAN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidsetAcrossContext(AcrossContext acrossContext) protected voidsetApplicationContext(org.springframework.context.ConfigurableApplicationContext applicationContext) Methods inherited from class com.foreach.across.core.context.registry.DefaultAcrossContextBeanRegistry
containsBean, findBeanOfTypeFromModule, getBean, getBean, getBeanFromModule, getBeanOfType, getBeanOfTypeFromModule, getBeansOfType, getBeansOfType, getBeansOfType, getBeansOfTypeAsMap, getBeansOfTypeAsMap, getBeansOfTypeAsMap, getBeanType, getBeanTypeFromModule, getContextId, getContextInfo, getFactoryName, moduleContainsLocalBean, setContextInfo
-
Constructor Details
-
AcrossTestContext
protected AcrossTestContext()
-
-
Method Details
-
setApplicationContext
protected void setApplicationContext(org.springframework.context.ConfigurableApplicationContext applicationContext) -
setAcrossContext
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
contextInfo
- Returns:
- the bootstrapped Across context info
-