Class AbstractContextPlugin<T extends OsgiContextImpl>
- java.lang.Object
-
- org.apache.sling.testing.mock.osgi.context.AbstractContextPlugin<T>
-
- Type Parameters:
T- Context
- All Implemented Interfaces:
ContextPlugin<T>
@ConsumerType public abstract class AbstractContextPlugin<T extends OsgiContextImpl> extends Object implements ContextPlugin<T>
Default implementation ofContextPlugin.
-
-
Constructor Summary
Constructors Constructor Description AbstractContextPlugin()
-
Method Summary
All Methods Instance Methods Concrete 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
public void beforeSetUp(@NotNull T context) throws ExceptionDescription copied from interface:ContextPluginIs executed before the built-in setup rules are executed.- Specified by:
beforeSetUpin interfaceContextPlugin<T extends OsgiContextImpl>- Parameters:
context- OSGi context- Throws:
Exception- exception
-
afterSetUp
public void afterSetUp(@NotNull T context) throws ExceptionDescription copied from interface:ContextPluginIs executed after the built-in setup rules are executed.- Specified by:
afterSetUpin interfaceContextPlugin<T extends OsgiContextImpl>- Parameters:
context- OSGi context- Throws:
Exception- exception
-
beforeTearDown
public void beforeTearDown(@NotNull T context) throws ExceptionDescription copied from interface:ContextPluginIs executed before the built-in teardown rules are executed.- Specified by:
beforeTearDownin interfaceContextPlugin<T extends OsgiContextImpl>- Parameters:
context- OSGi context- Throws:
Exception- exception
-
afterTearDown
public void afterTearDown(@NotNull T context) throws ExceptionDescription copied from interface:ContextPluginIs executed after the built-in teardown rules are executed.- Specified by:
afterTearDownin interfaceContextPlugin<T extends OsgiContextImpl>- Parameters:
context- OSGi context- Throws:
Exception- exception
-
-