Interface ContextPlugin<T extends OsgiContextImpl>
-
- Type Parameters:
T- Context
- All Known Implementing Classes:
AbstractContextPlugin
@ConsumerType public interface ContextPlugin<T extends OsgiContextImpl>Callback plugin for application-specific setup and teardown operations to customize the mock context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidafterSetUp(T context)Is executed after the built-in setup rules are executed.voidafterTearDown(T context)Is executed after the built-in teardown rules are executed.voidbeforeSetUp(T context)Is executed before the built-in setup rules are executed.voidbeforeTearDown(T context)Is executed before the built-in teardown rules are executed.
-
-
-
Method Detail
-
beforeSetUp
void beforeSetUp(@NotNull T context) throws ExceptionIs executed before the built-in setup rules are executed.- Parameters:
context- OSGi context- Throws:
Exception- exception
-
afterSetUp
void afterSetUp(@NotNull T context) throws ExceptionIs executed after the built-in setup rules are executed.- Parameters:
context- OSGi context- Throws:
Exception- exception
-
beforeTearDown
void beforeTearDown(@NotNull T context) throws ExceptionIs executed before the built-in teardown rules are executed.- Parameters:
context- OSGi context- Throws:
Exception- exception
-
-