public final class ContextPlugins extends Object
| Constructor and Description |
|---|
ContextPlugins()
Start with empty list.
|
ContextPlugins(ContextCallback<T> afterSetUpCallback)
Start with some callbacks.
|
ContextPlugins(ContextCallback<U> afterSetUpCallback,
ContextCallback<V> beforeTearDownCallback)
Start with some callbacks.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends OsgiContextImpl> |
addAfterSetUpCallback(ContextCallback<T>... afterSetUpCallback)
Add callback
|
<T extends OsgiContextImpl> |
addAfterTearDownCallback(ContextCallback<T>... afterTearDownCallback)
Add callback
|
<T extends OsgiContextImpl> |
addBeforeSetUpCallback(ContextCallback<T>... beforeSetUpCallback)
Add callback
|
<T extends OsgiContextImpl> |
addBeforeTearDownCallback(ContextCallback<T>... beforeTearDownCallback)
Add callback
|
<T extends OsgiContextImpl> |
addPlugin(ContextPlugin<T>... plugin)
Add plugin
|
<T extends OsgiContextImpl> |
executeAfterSetUpCallback(T context)
Execute all after setup callbacks.
|
<T extends OsgiContextImpl> |
executeAfterTearDownCallback(T context)
Execute all after teardown callbacks.
|
<T extends OsgiContextImpl> |
executeBeforeSetUpCallback(T context)
Execute all before setup callbacks.
|
<T extends OsgiContextImpl> |
executeBeforeTearDownCallback(T context)
Execute all before teardown callbacks.
|
Collection<ContextPlugin<? extends OsgiContextImpl>> |
getPlugins() |
public ContextPlugins()
public ContextPlugins(ContextCallback<T> afterSetUpCallback)
T - context typeafterSetUpCallback - Allows the application to register an own callback function that is called after the built-in setup rules are executed.public ContextPlugins(ContextCallback<U> afterSetUpCallback, ContextCallback<V> beforeTearDownCallback)
U - context typeV - context typeafterSetUpCallback - Allows the application to register an own callback function that is called after the built-in setup rules are executed.beforeTearDownCallback - Allows the application to register an own callback function that is called before the built-in teardown rules are executed.@SafeVarargs public final <T extends OsgiContextImpl> void addPlugin(ContextPlugin<T>... plugin)
T - context typeplugin - Plugin@SafeVarargs public final <T extends OsgiContextImpl> void addBeforeSetUpCallback(ContextCallback<T>... beforeSetUpCallback)
T - context typebeforeSetUpCallback - Allows the application to register an own callback function that is called before the built-in setup rules are executed.@SafeVarargs public final <T extends OsgiContextImpl> void addAfterSetUpCallback(ContextCallback<T>... afterSetUpCallback)
T - context typeafterSetUpCallback - Allows the application to register an own callback function that is called after the built-in setup rules are executed.@SafeVarargs public final <T extends OsgiContextImpl> void addBeforeTearDownCallback(ContextCallback<T>... beforeTearDownCallback)
T - context typebeforeTearDownCallback - Allows the application to register an own callback function that is called before the built-in teardown rules are executed.@SafeVarargs public final <T extends OsgiContextImpl> void addAfterTearDownCallback(ContextCallback<T>... afterTearDownCallback)
T - context typeafterTearDownCallback - Allows the application to register an own callback function that is after before the built-in teardown rules are executed.public Collection<ContextPlugin<? extends OsgiContextImpl>> getPlugins()
public <T extends OsgiContextImpl> void executeBeforeSetUpCallback(T context)
T - context typecontext - Contextpublic <T extends OsgiContextImpl> void executeAfterSetUpCallback(T context)
T - context typecontext - Contextpublic <T extends OsgiContextImpl> void executeBeforeTearDownCallback(T context)
T - context typecontext - Contextpublic <T extends OsgiContextImpl> void executeAfterTearDownCallback(T context)
T - context typecontext - ContextCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.