Package org.eclipse.osgi.container
Class ModuleWiring
java.lang.Object
org.eclipse.osgi.container.ModuleWiring
- All Implemented Interfaces:
BundleReference,BundleWiring,Wiring
An implementation of
BundleWiring.- Since:
- 3.10
-
Field Summary
Fields inherited from interface org.osgi.framework.wiring.BundleWiring
FINDENTRIES_RECURSE, LISTRESOURCES_LOCAL, LISTRESOURCES_RECURSE -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDynamicImports(ModuleRevisionBuilder builder) Adds therequirementsfrom the specified builder to this wiring.findEntries(String path, String filePattern, int options) getCapabilities(String namespace) getModuleCapabilities(String namespace) Returns the same result asgetCapabilities(String)except uses type ModuleCapability and the returned list is unmodifiable.Returns the module loader for this wiring.getModuleRequirements(String namespace) Returns the same result asgetRequirements(String)except uses type ModuleRequirement and the returned list is unmodifiable.getProvidedModuleWires(String namespace) Returns the same result asgetProvidedWires(String)except uses type ModuleWire and the returned list is unmodifiable.getProvidedResourceWires(String namespace) getProvidedWires(String namespace) getRequiredModuleWires(String namespace) Returns the same result asgetRequiredWires(String)except uses type ModuleWire and the returned list is unmodifiable.getRequiredResourceWires(String namespace) getRequiredWires(String namespace) getRequirements(String namespace) getResourceCapabilities(String namespace) getResourceRequirements(String namespace) Returns an unmodifiable collection of package names for package capabilities that have been substituted.booleanbooleanisInUse()booleanisSubstitutedPackage(String packageName) Returns true if the specified package name has been substituted in this wiringlistResources(String path, String filePattern, int options) toString()
-
Method Details
-
getBundle
- Specified by:
getBundlein interfaceBundleReference
-
isCurrent
public boolean isCurrent()- Specified by:
isCurrentin interfaceBundleWiring
-
isInUse
public boolean isInUse()- Specified by:
isInUsein interfaceBundleWiring
-
getModuleCapabilities
Returns the same result asgetCapabilities(String)except uses type ModuleCapability and the returned list is unmodifiable.- Parameters:
namespace- the namespace- Returns:
- the capabilities
- See Also:
-
getModuleRequirements
Returns the same result asgetRequirements(String)except uses type ModuleRequirement and the returned list is unmodifiable.- Parameters:
namespace- the namespace- Returns:
- the requirements
- See Also:
-
getCapabilities
- Specified by:
getCapabilitiesin interfaceBundleWiring
-
getRequirements
- Specified by:
getRequirementsin interfaceBundleWiring
-
getProvidedModuleWires
Returns the same result asgetProvidedWires(String)except uses type ModuleWire and the returned list is unmodifiable.- Parameters:
namespace- the namespace- Returns:
- the wires
- See Also:
-
getRequiredModuleWires
Returns the same result asgetRequiredWires(String)except uses type ModuleWire and the returned list is unmodifiable.- Parameters:
namespace- the namespace- Returns:
- the wires
- See Also:
-
getProvidedWires
- Specified by:
getProvidedWiresin interfaceBundleWiring
-
getRequiredWires
- Specified by:
getRequiredWiresin interfaceBundleWiring
-
getRevision
- Specified by:
getRevisionin interfaceBundleWiring
-
getClassLoader
- Specified by:
getClassLoaderin interfaceBundleWiring
-
getModuleLoader
Returns the module loader for this wiring. If the module loader does not exist yet then one will be created- Returns:
- the module loader for this wiring.
-
findEntries
- Specified by:
findEntriesin interfaceBundleWiring
-
listResources
- Specified by:
listResourcesin interfaceBundleWiring
-
getResourceCapabilities
- Specified by:
getResourceCapabilitiesin interfaceBundleWiring- Specified by:
getResourceCapabilitiesin interfaceWiring
-
getResourceRequirements
- Specified by:
getResourceRequirementsin interfaceBundleWiring- Specified by:
getResourceRequirementsin interfaceWiring
-
getProvidedResourceWires
- Specified by:
getProvidedResourceWiresin interfaceBundleWiring- Specified by:
getProvidedResourceWiresin interfaceWiring
-
getRequiredResourceWires
- Specified by:
getRequiredResourceWiresin interfaceBundleWiring- Specified by:
getRequiredResourceWiresin interfaceWiring
-
getResource
- Specified by:
getResourcein interfaceBundleWiring- Specified by:
getResourcein interfaceWiring
-
isSubstitutedPackage
Returns true if the specified package name has been substituted in this wiring- Parameters:
packageName- the package name to check- Returns:
- true if the specified package name has been substituted in this wiring
-
getSubstitutedNames
Returns an unmodifiable collection of package names for package capabilities that have been substituted.- Returns:
- the substituted package names
-
addDynamicImports
Adds therequirementsfrom the specified builder to this wiring. The new requirements must be in thePackageNamespace. These requirements are transient and will not exist when loading up persistent wirings.- Parameters:
builder- the builder that defines the new dynamic imports.
-
toString
-