@ProviderType public final class ContextPlugins extends Object
| Constructor and Description |
|---|
ContextPlugins()
Start with empty list.
|
ContextPlugins(@NotNull ContextCallback<T> afterSetUpCallback)
Start with some callbacks.
|
ContextPlugins(@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull 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.
|
@NotNull Collection<ContextPlugin<? extends OsgiContextImpl>> |
getPlugins() |
public ContextPlugins()
public ContextPlugins(@NotNull
@NotNull 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(@NotNull
@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull
@NotNull 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(@NotNull ContextPlugin<T>... plugin)
T - context typeplugin - Plugin@SafeVarargs public final <T extends OsgiContextImpl> void addBeforeSetUpCallback(@NotNull 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(@NotNull 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(@NotNull 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(@NotNull 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.@NotNull public @NotNull Collection<ContextPlugin<? extends OsgiContextImpl>> getPlugins()
public <T extends OsgiContextImpl> void executeBeforeSetUpCallback(@NotNull T context)
T - context typecontext - Contextpublic <T extends OsgiContextImpl> void executeAfterSetUpCallback(@NotNull T context)
T - context typecontext - Contextpublic <T extends OsgiContextImpl> void executeBeforeTearDownCallback(@NotNull T context)
T - context typecontext - Contextpublic <T extends OsgiContextImpl> void executeAfterTearDownCallback(@NotNull T context)
T - context typecontext - ContextCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.