Package | Description |
---|---|
com.atlassian.jira.component.pico | |
com.atlassian.jira.component.pico.osgi | |
com.atlassian.jira.component.pico.registrar |
Modifier and Type | Method and Description |
---|---|
void |
ComponentContainer.component(OsgiServiceScope scope,
org.picocontainer.ComponentAdapter componentAdapter)
Adds the given component adapter to this container, with the given scope.
|
<T> void |
ComponentContainer.implementation(OsgiServiceScope scope,
Class<? super T> key,
Class<T> implementation) |
<T> void |
ComponentContainer.implementation(OsgiServiceScope scope,
Class<? super T> key,
Class<T> implementation,
Object... parametersOrKeys)
Registers the given component using the given keys to look up its constructor parameters.
|
<T> void |
ComponentContainer.implementation(OsgiServiceScope scope,
Class<? super T> key,
Class<T> implementation,
org.picocontainer.Parameter[] parameters)
Registers the given component by explicitly providing its constructor arguments.
|
<T> void |
ComponentContainer.implementationBasedOnAppProperty(OsgiServiceScope scope,
Class<T> interfaceClass,
Class<? extends T> enabledClass,
Class<? extends T> disabledClass,
String appPropertiesKey)
Registers one of two possible implementations of a given interface, based on the boolean value
of the given application property.
|
<T> void |
ComponentContainer.implementationViaNoArgConstructor(OsgiServiceScope scope,
Class<T> key,
Class<? extends T> implementation)
Registers a component via its no-arg constructor, to work around
PICO-201.
|
<T,S extends T> |
ComponentContainer.instance(OsgiServiceScope scope,
Class<T> key,
S instance)
Adds the given component to this container.
|
Modifier and Type | Method and Description |
---|---|
static OsgiServiceScope |
OsgiServiceScope.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OsgiServiceScope[] |
OsgiServiceScope.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
MultipleKeyRegistrant<T> |
MultipleKeyRegistrant.implementing(Class<? super T> interfaceClass,
OsgiServiceScope desiredScope) |
void |
MultipleKeyRegistrant.registerWith(OsgiServiceScope defaultScope,
ComponentContainer container) |
Copyright © 2002-2019 Atlassian. All Rights Reserved.