org.jboss.classloading.spi.metadata
Interface Requirement

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractRequirement, ModuleRequirement, PackageRequirement, UsesPackageRequirement

public interface Requirement
extends Serializable

Requirement.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Method Summary
 boolean isConsistent(Requirement other)
          Check whether this requirement is consistent with another requirement.
 boolean isDynamic()
          Whether the requirement is dynamic
 boolean isOptional()
          Whether the requirement is optional
 boolean isReExport()
          Whether to re-export the requirement
 boolean wantReExports()
          Whether we want re-exports
 

Method Detail

isReExport

boolean isReExport()
Whether to re-export the requirement

Returns:
true to re-export

wantReExports

boolean wantReExports()
Whether we want re-exports

Returns:
true to process re-exports

isOptional

boolean isOptional()
Whether the requirement is optional

Returns:
true if the requirement is optional

isDynamic

boolean isDynamic()
Whether the requirement is dynamic

Returns:
true if the requirement is dynamic

isConsistent

boolean isConsistent(Requirement other)
Check whether this requirement is consistent with another requirement.

Typically they will be inconsistent if they are the same type, have the same name but a different version

Parameters:
other - the other requirement
Returns:
true when consistent, false when inconsistent


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