public final class OsgiContextBuilder extends Object
OsgiContext instances with different sets of parameters.| Constructor and Description |
|---|
OsgiContextBuilder()
Create builder with default resource resolver type.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends OsgiContextImpl> |
afterSetUp(ContextCallback<T>... afterSetUpCallback) |
<T extends OsgiContextImpl> |
afterTearDown(ContextCallback<T>... afterTearDownCallback) |
<T extends OsgiContextImpl> |
beforeSetUp(ContextCallback<T>... beforeSetUpCallback) |
<T extends OsgiContextImpl> |
beforeTearDown(ContextCallback<T>... beforeTearDownCallback) |
OsgiContext |
build() |
<T extends OsgiContextImpl> |
plugin(ContextPlugin<T>... plugin) |
public OsgiContextBuilder()
@SafeVarargs public final <T extends OsgiContextImpl> OsgiContextBuilder plugin(ContextPlugin<T>... plugin)
T - context typeplugin - Context plugin which listens to context lifecycle events.@SafeVarargs public final <T extends OsgiContextImpl> OsgiContextBuilder beforeSetUp(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> OsgiContextBuilder afterSetUp(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> OsgiContextBuilder beforeTearDown(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> OsgiContextBuilder afterTearDown(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 OsgiContext build()
OsgiContext instance.Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.