Package org.jboss.as.arquillian.service
Class ContextManager
- java.lang.Object
-
- org.jboss.as.arquillian.service.ContextManager
-
public class ContextManager extends Object
Sets up and tears down a set of contexts, represented by a list ofSetupActions. Ifsetup(java.util.Map)completes successfully thenteardown(java.util.Map)must be called.- Author:
- Stuart Douglas, Andrew Lee Rubinger
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup(Map<String,Object> properties)Sets up the contexts.voidteardown(Map<String,Object> properties)Tears down the contexts.
-
-
-
Method Detail
-
setup
public void setup(Map<String,Object> properties)
Sets up the contexts. If any of the setup actions fail then any setup contexts are torn down, and then the exception is wrapped and thrown
-
teardown
public void teardown(Map<String,Object> properties)
Tears down the contexts. If an exception is thrown by aSetupActionit is wrapped and re-thrown after allSetupAction.teardown(java.util.Map)methods have been called.Contexts are torn down in the opposite order to which they are set up (i.e. the first context set up is the last to be torn down).
If more than one teardown() method thrown an exception then only the first is propagated.
-
-