| Constructor and Description |
|---|
WireImpl(Module importer,
Requirement ip,
Module exporter,
Capability ep) |
| Modifier and Type | Method and Description |
|---|---|
Capability |
getCapability()
Returns the associated capability from the exporting module that
satisfies the requirement of the importing module.
|
Class |
getClass(String name)
Requests a class from the exporting module.
|
Module |
getExporter()
Returns the exporting module.
|
Module |
getImporter()
Returns the importing module.
|
Requirement |
getRequirement()
Returns the associated requirement from the importing module that
resulted in the creation of this wire.
|
URL |
getResource(String name)
Requests a resource from the exporting module.
|
Enumeration |
getResources(String name)
Requests resources from the exporting module.
|
boolean |
hasPackage(String pkgName)
Returns whether or not the wire has a given package name.
|
String |
toString() |
public WireImpl(Module importer, Requirement ip, Module exporter, Capability ep)
public Module getImporter()
WiregetImporter in interface Wirepublic Requirement getRequirement()
WiregetRequirement in interface Wirepublic Module getExporter()
WiregetExporter in interface Wirepublic Capability getCapability()
WiregetCapability in interface Wirepublic boolean hasPackage(String pkgName)
WirehasPackage in interface Wirepublic Class getClass(String name) throws ClassNotFoundException
WiregetClass in interface WireClassNotFoundException - If the class was not found and
the search should be aborted.public URL getResource(String name) throws ResourceNotFoundException
WiregetResource in interface WireResourceNotFoundException - If the resource was not found and
the search should be aborted.public Enumeration getResources(String name) throws ResourceNotFoundException
WiregetResources in interface WireResourceNotFoundException - If the resource was not found and
the search should be aborted.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.