Class ExtensionManager.ExtensionManagerWiring
- All Implemented Interfaces:
BundleReference, BundleWiring, Wiring
- Enclosing class:
ExtensionManager
-
Nested Class Summary
Nested classes/interfaces inherited from class BundleWiringImpl
BundleWiringImpl.BundleClassLoader, BundleWiringImpl.BundleClassLoaderJava5, BundleWiringImpl.ToLocalUrlEnumeration -
Field Summary
Fields inherited from class BundleWiringImpl
EAGER_ACTIVATION, LAZY_ACTIVATION, LISTRESOURCES_DEBUGFields inherited from interface BundleWiring
FINDENTRIES_RECURSE, LISTRESOURCES_LOCAL, LISTRESOURCES_RECURSE -
Constructor Summary
ConstructorsConstructorDescriptionExtensionManagerWiring(Logger logger, Map configMap, BundleRevisionImpl revision) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()getCapabilities(String namespace) Returns the capabilities provided by this bundle wiring.getClassByDelegation(String name) Returns the class loader for this bundle wiring.Methods inherited from class BundleWiringImpl
addDynamicWire, convertToLocalUrl, findEntries, getBootDelegationClassLoader, getBundle, getFragmentContents, getFragments, getImportedPackageSource, getProvidedResourceWires, getProvidedWires, getRequiredResourceWires, getRequiredWires, getRequirements, getResource, getResourceCapabilities, getResourceRequirements, getRevision, hasPackageSource, isCurrent, isInUse, listResources, shouldBootDelegate, toString
-
Constructor Details
-
ExtensionManagerWiring
ExtensionManagerWiring(Logger logger, Map configMap, BundleRevisionImpl revision) throws Exception - Throws:
Exception
-
-
Method Details
-
getClassLoader
Description copied from interface:BundleWiringReturns the class loader for this bundle wiring. Since a bundle refresh creates a new bundle wiring for a bundle, different bundle wirings for the same bundle will have different class loaders.- Specified by:
getClassLoaderin interfaceBundleWiring- Overrides:
getClassLoaderin classBundleWiringImpl- Returns:
- The class loader for this bundle wiring. If this bundle wiring is
not
in useor this bundle wiring is for a fragment revision,nullwill be returned.
-
getCapabilities
Description copied from interface:BundleWiringReturns the capabilities provided by this bundle wiring.Only capabilities considered by the resolver are returned. For example, capabilities with
effectivedirective not equal toresolveare not returned.A capability may not be required by any bundle wiring and thus there may be no
wiresfor 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
identitycapability.† The
identitycapability provided by attached fragment revisions must not be included in the capabilities of the host bundle wiring.- Specified by:
getCapabilitiesin interfaceBundleWiring- Overrides:
getCapabilitiesin classBundleWiringImpl- Parameters:
namespace- The namespace of the capabilities to return ornullto return the capabilities from all namespaces.- Returns:
- A list containing a snapshot of the
BundleCapabilitys, or an empty list if this bundle wiring provides no capabilities in the specified namespace. If this bundle wiring is notin use,nullwill be returned. For a given namespace, the list contains the capabilities in the order the capabilities were specified in the manifests of thebundle revisionand the attached fragments† of this bundle wiring. There is no ordering defined between capabilities in different namespaces.
-
getNativeLibraries
- Overrides:
getNativeLibrariesin classBundleWiringImpl
-
getClassByDelegation
- Overrides:
getClassByDelegationin classBundleWiringImpl- Throws:
ClassNotFoundException
-
getResourceByDelegation
- Overrides:
getResourceByDelegationin classBundleWiringImpl
-
getResourcesByDelegation
- Overrides:
getResourcesByDelegationin classBundleWiringImpl
-
dispose
public void dispose()- Overrides:
disposein classBundleWiringImpl
-