@ProviderType public final class OsgiContext extends OsgiContextImpl implements org.junit.rules.TestRule
componentContext
Constructor and Description |
---|
OsgiContext()
Initialize OSGi context.
|
OsgiContext(@NotNull ContextCallback<T> afterSetUpCallback)
Initialize OSGi context.
|
OsgiContext(@NotNull ContextCallback<U> afterSetUpCallback,
@NotNull ContextCallback<V> beforeTearDownCallback)
Initialize OSGi context.
|
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
bundleContext, componentContext, getService, getServices, registerInjectActivateService, registerInjectActivateService, registerInjectActivateService, registerInjectActivateService, registerInjectActivateService, registerInjectActivateService, registerService, registerService, registerService, registerService, setUp, tearDown
public OsgiContext()
public OsgiContext(@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 OsgiContext(@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.Copyright © 2014–2021 wcm.io. All rights reserved.