|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.deployers.structure.spi.classloading.helpers.PackageCapabilityImpl
public class PackageCapabilityImpl
PackageCapabilityImpl.
| Constructor Summary | |
|---|---|
PackageCapabilityImpl(String name)
Create a new PackageCapabilityImpl with the default version |
|
PackageCapabilityImpl(String name,
Version version)
Create a new PackageCapabilityImpl. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getName()
Get the package name |
Version |
getVersion()
Get the package version |
int |
hashCode()
|
boolean |
resolves(DeploymentUnit unit,
Requirement requirement)
Whether this capability resolves the requirement |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PackageCapabilityImpl(String name)
name - the name
IllegalArgumentException - for a null name
public PackageCapabilityImpl(String name,
Version version)
name - the nameversion - the version - pass null for default version
IllegalArgumentException - for a null name| Method Detail |
|---|
public String getName()
PackageCapability
getName in interface PackageCapabilitypublic Version getVersion()
PackageCapability
getVersion in interface PackageCapability
public boolean resolves(DeploymentUnit unit,
Requirement requirement)
Capability
resolves in interface Capabilityunit - the deploymentrequirement - the requirement
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||