| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | |
| private static class | ServiceLoaderImpl.
List of |
| private static class | ServiceLoaderImpl.
Map of service name to provider names for a particular bundle |
| Modifier and Type | Field and Description |
|---|---|
| private BundleContext | |
| private BundleListener | |
| private ServiceLoaderImpl. | |
| private ReadWriteLock |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private BundleContext | |
| private boolean | |
| private List | Returns: names of providers, empty list if none is foundLoads a single service file and returns the names of the providers. |
| private Class | |
| pack-priv <T> Iterable | lookupProviderClasses1(Class<T> serviceClass)
Implements abstract org.
|
| pack-priv <T> Iterable | lookupProviderInstances1(Class<T> serviceClass, ServiceLoader.
Implements abstract org.
|
| private synchronized void | |
| public void |
| bundleContext | back to summary |
|---|---|
| private BundleContext bundleContext | |
| bundleTracker | back to summary |
|---|---|
| private BundleListener bundleTracker | |
| providersList | back to summary |
|---|---|
| private ServiceLoaderImpl. | |
| rwLock | back to summary |
|---|---|
| private ReadWriteLock rwLock | |
| ServiceLoaderImpl | back to summary |
|---|---|
| public ServiceLoaderImpl() | |
| addProviders | back to summary |
|---|---|
| private void addProviders(Bundle bundle) | |
| debug | back to summary |
|---|---|
| private void debug(String s) | |
| debug | back to summary |
|---|---|
| private void debug(String s, Throwable t) | |
| getBundleContextSecured | back to summary |
|---|---|
| private BundleContext getBundleContextSecured(final Bundle bundle) | |
| isCompatible | back to summary |
|---|---|
| private boolean isCompatible(Class<T> providerClass, Class<T> serviceClass) | |
| load | back to summary |
|---|---|
| private List Loads a single service file and returns the names of the providers. If the same provider appears multiple times, the list contains only one entry for all of the duplicates. | |
| loadClassSecured | back to summary |
|---|---|
| private Class | |
| lookupProviderClasses1 | back to summary |
|---|---|
| pack-priv <T> Iterable Implements abstract org. | |
| lookupProviderInstances1 | back to summary |
|---|---|
| pack-priv <T> Iterable Implements abstract org. | |
| removeProviders | back to summary |
|---|---|
| private synchronized void removeProviders(Bundle bundle) | |
| trackBundles | back to summary |
|---|---|
| public void trackBundles() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | bundleChanged(BundleEvent event)
Implements org. Receives notification that a bundle has had a lifecycle change. |
| BundleTracker | back to summary |
|---|---|
| private BundleTracker() | |
| bundleChanged | back to summary |
|---|---|
| public void bundleChanged(BundleEvent event) Implements org. Doc from org. Receives notification that a bundle has had a lifecycle change. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public T | make(Class<T> providerClass, Class<T> serviceClass)
Implements org.
|
| DefaultFactory | back to summary |
|---|---|
| private DefaultFactory() | |
| make | back to summary |
|---|---|
| public T make(Class<T> providerClass, Class<T> serviceClass) throws Exception Implements org. | |
ServiceLoaderImpl.ProvidersPerBundle
Synchronisation is handled by outer class.
| Modifier and Type | Field and Description |
|---|---|
| private List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public List | |
| pack-priv void |
| allProviders | back to summary |
|---|---|
| private List<ServiceLoaderImpl. | |
| ProvidersList | back to summary |
|---|---|
| private ProvidersList() | |
| addProviders | back to summary |
|---|---|
| pack-priv void addProviders(ServiceLoaderImpl. | |
| getAllProviders | back to summary |
|---|---|
public List
| |
| removeProviders | back to summary |
|---|---|
| pack-priv void removeProviders(long bundleId) | |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| pack-priv Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public Map | |
| public void |
| bundleId | back to summary |
|---|---|
| private long bundleId | |
| serviceToProvidersMap | back to summary |
|---|---|
| pack-priv Map<String, List<String>> serviceToProvidersMap | |
| ProvidersPerBundle | back to summary |
|---|---|
| private ProvidersPerBundle(long bundleId) | |
| getBundleId | back to summary |
|---|---|
| public long getBundleId() | |
| getServiceToProvidersMap | back to summary |
|---|---|
| public Map | |
| put | back to summary |
|---|---|
| public void put(String serviceName, List<String> providerNames) | |