| Modifier and Type | Field and Description |
|---|---|
| private final BundleContext | |
| private static final Logger | |
| private static final OSGIServiceComparator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | |
| public int | getPriority()
Implements javax. This method allows to define a priority for a registered ServiceProvider instance. |
| public Enumeration | |
| public <T> T | getService(Class<T> serviceType)
Overrides default javax. Access a single service, given its type. |
| public <T> List | getServices(Class<T> serviceType)
Implements javax. Access a list of services, given its type. |
| public boolean |
| bundleContext | back to summary |
|---|---|
| private final BundleContext bundleContext | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| REF_COMPARATOR | back to summary |
|---|---|
| private static final OSGIServiceComparator REF_COMPARATOR | |
| OSGIServiceProvider | back to summary |
|---|---|
| public OSGIServiceProvider(BundleContext bundleContext) | |
| create | back to summary |
|---|---|
public <T> T create(Class<T> serviceType)
| |
| getPriority | back to summary |
|---|---|
| public int getPriority() Implements javax. Doc from javax. This method allows to define a priority for a registered ServiceProvider instance. When multiple providers are registered in the system the provider with the highest priority value is taken.
| |
| getResources | back to summary |
|---|---|
| public Enumeration | |
| getService | back to summary |
|---|---|
| public <T> T getService(Class<T> serviceType) Overrides default javax. Doc from javax. Access a single service, given its type. The bootstrap mechanism should order the instance for precedence, hereby the most significant should be first in order and returned. If no such services are found, null is returned.
| |
| getServices | back to summary |
|---|---|
| public <T> List Implements javax. Doc from javax. Access a list of services, given its type. The bootstrap mechanism should order the instance for precedence, hereby the most significant should be first in order. If no such services are found, an empty list should be returned.
| |
| isInitialized | back to summary |
|---|---|
| public boolean isInitialized() | |