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 SummaryFields inherited from interface org.osgi.framework.wiring.BundleWiringFINDENTRIES_RECURSE, LISTRESOURCES_LOCAL, LISTRESOURCES_RECURSE
- 
Method SummaryModifier 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 interface- BundleReference
 
- 
isCurrentpublic boolean isCurrent()- Specified by:
- isCurrentin interface- BundleWiring
 
- 
isInUsepublic boolean isInUse()- Specified by:
- isInUsein interface- BundleWiring
 
- 
getModuleCapabilitiesReturns the same result asgetCapabilities(String)except uses type ModuleCapability and the returned list is unmodifiable.- Parameters:
- namespace- the namespace
- Returns:
- the capabilities
- See Also:
 
- 
getModuleRequirementsReturns 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 interface- BundleWiring
 
- 
getRequirements- Specified by:
- getRequirementsin interface- BundleWiring
 
- 
getProvidedModuleWiresReturns the same result asgetProvidedWires(String)except uses type ModuleWire and the returned list is unmodifiable.- Parameters:
- namespace- the namespace
- Returns:
- the wires
- See Also:
 
- 
getRequiredModuleWiresReturns 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 interface- BundleWiring
 
- 
getRequiredWires- Specified by:
- getRequiredWiresin interface- BundleWiring
 
- 
getRevision- Specified by:
- getRevisionin interface- BundleWiring
 
- 
getClassLoader- Specified by:
- getClassLoaderin interface- BundleWiring
 
- 
getModuleLoaderReturns 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 interface- BundleWiring
 
- 
listResources- Specified by:
- listResourcesin interface- BundleWiring
 
- 
getResourceCapabilities- Specified by:
- getResourceCapabilitiesin interface- BundleWiring
- Specified by:
- getResourceCapabilitiesin interface- Wiring
 
- 
getResourceRequirements- Specified by:
- getResourceRequirementsin interface- BundleWiring
- Specified by:
- getResourceRequirementsin interface- Wiring
 
- 
getProvidedResourceWires- Specified by:
- getProvidedResourceWiresin interface- BundleWiring
- Specified by:
- getProvidedResourceWiresin interface- Wiring
 
- 
getRequiredResourceWires- Specified by:
- getRequiredResourceWiresin interface- BundleWiring
- Specified by:
- getRequiredResourceWiresin interface- Wiring
 
- 
getResource- Specified by:
- getResourcein interface- BundleWiring
- Specified by:
- getResourcein interface- Wiring
 
- 
isSubstitutedPackageReturns 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
 
- 
getSubstitutedNamesReturns an unmodifiable collection of package names for package capabilities that have been substituted.- Returns:
- the substituted package names
 
- 
addDynamicImportsAdds 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
 
-