org.jboss.classloading.plugins.metadata
Class ModuleRequirement

java.lang.Object
  extended by org.jboss.classloading.spi.helpers.NameAndVersionRangeSupport
      extended by org.jboss.classloading.spi.metadata.helpers.AbstractRequirement
          extended by org.jboss.classloading.plugins.metadata.ModuleRequirement
All Implemented Interfaces:
Serializable, Requirement

public class ModuleRequirement
extends AbstractRequirement

ModuleRequirement.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
ModuleRequirement()
          Create a new ModuleRequirement.
ModuleRequirement(String name)
          Create a new ModuleRequirement with no version constraint
ModuleRequirement(String name, VersionRange versionRange)
          Create a new ModuleRequirement.
 
Method Summary
 boolean equals(Object obj)
           
 boolean wantReExports()
          For module requirements we want re-exports
 
Methods inherited from class org.jboss.classloading.spi.metadata.helpers.AbstractRequirement
isConsistent, isConsistent, isDynamic, isOptional, isReExport, setDynamic, setOptional, setReExport, toString, toString
 
Methods inherited from class org.jboss.classloading.spi.helpers.NameAndVersionRangeSupport
getFrom, getFromVersion, getName, getTo, getToVersion, getVersionRange, hashCode, isFromVersionInclusive, isToVersionInclusive, setFrom, setFromVersion, setFromVersionInclusive, setName, setTo, setToVersion, setToVersionInclusive, setVersion, setVersionRange
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleRequirement

public ModuleRequirement()
Create a new ModuleRequirement.


ModuleRequirement

public ModuleRequirement(String name)
Create a new ModuleRequirement with no version constraint

Parameters:
name - the name
Throws:
IllegalArgumentException - for a null name

ModuleRequirement

public ModuleRequirement(String name,
                         VersionRange versionRange)
Create a new ModuleRequirement.

Parameters:
name - the name
versionRange - the version range - pass null for all versions
Throws:
IllegalArgumentException - for a null name
Method Detail

wantReExports

public boolean wantReExports()
For module requirements we want re-exports

Specified by:
wantReExports in interface Requirement
Overrides:
wantReExports in class AbstractRequirement
Returns:
true to process re-exports

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractRequirement


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.