Class ProviderRegistryImpl.BundleResources
java.lang.Object
org.apache.geronimo.osgi.registry.ProviderRegistryImpl.BundleResources
- Enclosing class:
ProviderRegistryImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.osgi.framework.Bundle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParse the Export-Provider: header to create a list of providers that are exported via the header syntax rather than via a provider mapping file.private void
private void
boolean
private void
parseServiceFile
(URL u, List<ProviderRegistryImpl.BundleProviderLoader> mappings) Parse a provider definition file and create loaders for all definitions contained within the file.processDefinitions
(String path) Process all of the service definition files in a given target path.void
remove()
Remove all resources associated with this bundle from the global registry.
-
Field Details
-
bundle
private org.osgi.framework.Bundle bundle -
serviceProviders
-
providers
-
-
Constructor Details
-
BundleResources
public BundleResources(org.osgi.framework.Bundle b)
-
-
Method Details
-
needsTracking
public boolean needsTracking() -
locateProviders
private void locateProviders() -
locateHeaderProviderDefinitions
Parse the Export-Provider: header to create a list of providers that are exported via the header syntax rather than via a provider mapping file.- Returns:
- A list of providers defined on the header, or null if no providers were exported.
-
locateServices
private void locateServices() -
remove
public void remove()Remove all resources associated with this bundle from the global registry. -
processDefinitions
Process all of the service definition files in a given target path. This is used to process both the META-INF/services files and the OSGI-INF/providers files.- Parameters:
path
- The target path location.- Returns:
- The list of matching service definitions. Returns null if no matches were found.
-
parseServiceFile
Parse a provider definition file and create loaders for all definitions contained within the file.- Parameters:
u
- The URL of the file
-