|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWire
This interface represents a directed class/resource loading dependency between two modules, which result when the framework resolves Import-Package or Require-Bundle declarations. A wire is the means by which a dependent module makes a class/resource request on the providing module.
Method Summary | |
---|---|
ICapability |
getCapability()
Returns the associated capability from the exporting module that satisfies the requirement of the importing module. |
java.lang.Class |
getClass(java.lang.String name)
Requests a class from the exporting module. |
IModule |
getExporter()
Returns the exporting module. |
IModule |
getImporter()
Returns the importing module. |
IRequirement |
getRequirement()
Returns the associated requirement from the importing module that resulted in the creation of this wire. |
java.net.URL |
getResource(java.lang.String name)
Requests a resource from the exporting module. |
java.util.Enumeration |
getResources(java.lang.String name)
Requests resources from the exporting module. |
boolean |
hasPackage(java.lang.String pkgName)
Returns whether or not the wire has a given package name. |
Method Detail |
---|
IModule getImporter()
IRequirement getRequirement()
IModule getExporter()
ICapability getCapability()
boolean hasPackage(java.lang.String pkgName)
java.lang.Class getClass(java.lang.String name) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- If the class was not found and
the search should be aborted.java.net.URL getResource(java.lang.String name) throws ResourceNotFoundException
ResourceNotFoundException
- If the resource was not found and
the search should be aborted.java.util.Enumeration getResources(java.lang.String name) throws ResourceNotFoundException
ResourceNotFoundException
- If the resource was not found and
the search should be aborted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |