Class ExtensionManager.ExtensionManagerWiring
- java.lang.Object
-
- org.apache.felix.framework.BundleWiringImpl
-
- org.apache.felix.framework.ExtensionManager.ExtensionManagerWiring
-
- All Implemented Interfaces:
BundleReference
,BundleWiring
,Wiring
- Enclosing class:
- ExtensionManager
class ExtensionManager.ExtensionManagerWiring extends BundleWiringImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.felix.framework.BundleWiringImpl
BundleWiringImpl.BundleClassLoader, BundleWiringImpl.BundleClassLoaderJava5, BundleWiringImpl.ToLocalUrlEnumeration
-
-
Field Summary
-
Fields inherited from class org.apache.felix.framework.BundleWiringImpl
EAGER_ACTIVATION, LAZY_ACTIVATION, LISTRESOURCES_DEBUG
-
Fields inherited from interface org.osgi.framework.wiring.BundleWiring
FINDENTRIES_RECURSE, LISTRESOURCES_LOCAL, LISTRESOURCES_RECURSE
-
-
Constructor Summary
Constructors Constructor Description ExtensionManagerWiring(Logger logger, java.util.Map configMap, BundleRevisionImpl revision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.apache.felix.framework.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 Detail
-
ExtensionManagerWiring
ExtensionManagerWiring(Logger logger, java.util.Map configMap, BundleRevisionImpl revision) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
Description copied from interface:BundleWiring
Returns 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:
getClassLoader
in interfaceBundleWiring
- Overrides:
getClassLoader
in classBundleWiringImpl
- Returns:
- The class loader for this bundle wiring. If this bundle wiring is
not
in use
or this bundle wiring is for a fragment revision,null
will be returned.
-
getCapabilities
public java.util.List<BundleCapability> getCapabilities(java.lang.String namespace)
Description copied from interface:BundleWiring
Returns the capabilities provided by this bundle wiring.Only capabilities considered by the resolver are returned. For example, capabilities with
effective
directive not equal toresolve
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.- Specified by:
getCapabilities
in interfaceBundleWiring
- Overrides:
getCapabilities
in classBundleWiringImpl
- Parameters:
namespace
- The namespace of the capabilities to return ornull
to return the capabilities from all namespaces.- Returns:
- A list containing a snapshot of the
BundleCapability
s, or an empty list if this bundle wiring provides no capabilities in the specified namespace. If this bundle wiring is notin 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 thebundle revision
and the attached fragments† of this bundle wiring. There is no ordering defined between capabilities in different namespaces.
-
getNativeLibraries
public java.util.List<NativeLibrary> getNativeLibraries()
- Overrides:
getNativeLibraries
in classBundleWiringImpl
-
getClassByDelegation
public java.lang.Class getClassByDelegation(java.lang.String name) throws java.lang.ClassNotFoundException
- Overrides:
getClassByDelegation
in classBundleWiringImpl
- Throws:
java.lang.ClassNotFoundException
-
getResourceByDelegation
public java.net.URL getResourceByDelegation(java.lang.String name)
- Overrides:
getResourceByDelegation
in classBundleWiringImpl
-
getResourcesByDelegation
public java.util.Enumeration getResourcesByDelegation(java.lang.String name)
- Overrides:
getResourcesByDelegation
in classBundleWiringImpl
-
dispose
public void dispose()
- Overrides:
dispose
in classBundleWiringImpl
-
-