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 TypeMethodDescriptionvoid
afterSetUp
(T context) Is executed after the built-in setup rules are executed.void
afterTearDown
(T context) Is executed after the built-in teardown rules are executed.void
beforeSetUp
(T context) Is executed before the built-in setup rules are executed.void
beforeTearDown
(T context) Is executed before the built-in teardown rules are executed.
-
Constructor Details
-
AbstractContextPlugin
public AbstractContextPlugin()
-
-
Method Details
-
beforeSetUp
Description copied from interface:ContextPlugin
Is executed before the built-in setup rules are executed.- Specified by:
beforeSetUp
in interfaceContextPlugin<T extends OsgiContextImpl>
- Parameters:
context
- OSGi context- Throws:
Exception
- exception
-
afterSetUp
Description copied from interface:ContextPlugin
Is executed after the built-in setup rules are executed.- Specified by:
afterSetUp
in interfaceContextPlugin<T extends OsgiContextImpl>
- Parameters:
context
- OSGi context- Throws:
Exception
- exception
-
beforeTearDown
Description copied from interface:ContextPlugin
Is executed before the built-in teardown rules are executed.- Specified by:
beforeTearDown
in interfaceContextPlugin<T extends OsgiContextImpl>
- Parameters:
context
- OSGi context- Throws:
Exception
- exception
-
afterTearDown
Description copied from interface:ContextPlugin
Is executed after the built-in teardown rules are executed.- Specified by:
afterTearDown
in interfaceContextPlugin<T extends OsgiContextImpl>
- Parameters:
context
- OSGi context- Throws:
Exception
- exception
-