class ExtensionManager.ExtensionManagerWiring extends BundleWiringImpl
BundleWiringImpl.BundleClassLoader, BundleWiringImpl.BundleClassLoaderJava5, BundleWiringImpl.ToLocalUrlEnumerationEAGER_ACTIVATION, LAZY_ACTIVATION, LISTRESOURCES_DEBUGFINDENTRIES_RECURSE, LISTRESOURCES_LOCAL, LISTRESOURCES_RECURSE| Constructor and Description |
|---|
ExtensionManagerWiring(Logger logger,
java.util.Map configMap,
BundleRevisionImpl revision) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
java.util.List<BundleCapability> |
getCapabilities(java.lang.String namespace)
Returns the capabilities provided by this bundle wiring.
|
java.lang.Class |
getClassByDelegation(java.lang.String name) |
java.lang.ClassLoader |
getClassLoader()
Returns the class loader for this bundle wiring.
|
java.util.List<NativeLibrary> |
getNativeLibraries() |
java.net.URL |
getResourceByDelegation(java.lang.String name) |
java.util.Enumeration |
getResourcesByDelegation(java.lang.String name) |
addDynamicWire, convertToLocalUrl, findEntries, getBootDelegationClassLoader, getBundle, getFragmentContents, getFragments, getImportedPackageSource, getProvidedResourceWires, getProvidedWires, getRequiredResourceWires, getRequiredWires, getRequirements, getResource, getResourceCapabilities, getResourceRequirements, getRevision, hasPackageSource, isCurrent, isInUse, listResources, shouldBootDelegate, toStringExtensionManagerWiring(Logger logger, java.util.Map configMap, BundleRevisionImpl revision) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.ClassLoader getClassLoader()
BundleWiringgetClassLoader in interface BundleWiringgetClassLoader in class BundleWiringImplin use or this bundle wiring is for a
fragment revision, null will be returned.public java.util.List<BundleCapability> getCapabilities(java.lang.String namespace)
BundleWiring
Only capabilities considered by the resolver are returned. For example,
capabilities with effective directive not equal to resolve are not returned.
A capability may not be required by any bundle wiring and thus there may
be no wires for the capability.
A bundle wiring for a non-fragment revision provides a subset of the declared capabilities from the bundle revision and all attached fragment revisions†. Not all declared capabilities may be provided since some may be discarded. For example, if a package is declared to be both exported and imported, only one is selected and the other is discarded.
A bundle wiring for a fragment revision with a symbolic name must provide
exactly one identity capability.
† The identity capability provided by
attached fragment revisions must not be included in the capabilities of
the host bundle wiring.
getCapabilities in interface BundleWiringgetCapabilities in class BundleWiringImplnamespace - The namespace of the capabilities to return or
null to return the capabilities from all namespaces.BundleCapabilitys, or
an empty list if this bundle wiring provides no capabilities in
the specified namespace. If this bundle wiring is not
in use, null will be returned. For a
given namespace, the list contains the capabilities in the order
the capabilities were specified in the manifests of the
bundle revision and the attached
fragments† of this bundle wiring. There is no
ordering defined between capabilities in different namespaces.public java.util.List<NativeLibrary> getNativeLibraries()
getNativeLibraries in class BundleWiringImplpublic java.lang.Class getClassByDelegation(java.lang.String name)
throws java.lang.ClassNotFoundException
getClassByDelegation in class BundleWiringImpljava.lang.ClassNotFoundExceptionpublic java.net.URL getResourceByDelegation(java.lang.String name)
getResourceByDelegation in class BundleWiringImplpublic java.util.Enumeration getResourcesByDelegation(java.lang.String name)
getResourcesByDelegation in class BundleWiringImplpublic void dispose()
dispose in class BundleWiringImpl