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 of
ContextPlugin.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterSetUp(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.
-
Constructor Details
-
AbstractContextPlugin
public AbstractContextPlugin()
-
-
Method Details
-
beforeSetUp
Description 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
Description 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
Description 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
Description 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
-