org.jboss.deployers.structure.spi.classloading.helpers
Class RequireModuleImpl

java.lang.Object
  extended by org.jboss.deployers.structure.spi.classloading.helpers.RequireModuleImpl
All Implemented Interfaces:
Serializable, Requirement, RequireModule

public class RequireModuleImpl
extends Object
implements RequireModule

RequireModuleImpl.

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

Constructor Summary
RequireModuleImpl(String name)
          Create a new RequireModuleImpl with no version constraint
RequireModuleImpl(String name, VersionRange versionRange)
          Create a new RequireModuleImpl.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          The required module name
 VersionRange getVersionRange()
          The version range
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequireModuleImpl

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

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

RequireModuleImpl

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

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

getName

public String getName()
Description copied from interface: RequireModule
The required module name

Specified by:
getName in interface RequireModule
Returns:
the name

getVersionRange

public VersionRange getVersionRange()
Description copied from interface: RequireModule
The version range

Specified by:
getVersionRange in interface RequireModule
Returns:
version range

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 JBoss Inc.. All Rights Reserved.