| java.lang.Object org.apache.ivy.core.module.id.ModuleRules
ModuleRules | public class ModuleRules (Code) | | A list of module specific rules.
This class defines a list of module specific rules. For each module only one rule apply,
sometimes none.
To know which rule to apply, they are configured using matchers. So you can define a rule
applying to all module from one particular organization, or to all modules with a revisions
matching a pattern, and so on.
Rules condition are evaluated in order, so the first matching rule is returned.
Rules themselves can be represented by any object, depending on the purpose of the rule (define
which resolver to use, which TTL in cache, ...)
|
defineRule | public void defineRule(MapMatcher condition, Object rule)(Code) | | Defines a new rule for the given condition.
Parameters: condition - the condition for which the rule should be applied. Must not be null . Parameters: rule - the rule to apply. Must not be null . |
|
|