org.gradle.api
Interface DomainObjectContainer<T>

Type Parameters:
T - The type of domain objects in this container.
All Superinterfaces:
DomainObjectCollection<T>, java.lang.Iterable<T>
All Known Subinterfaces:
ConfigurationContainer, ConfigurationHandler, PluginContainer, ProjectPluginsContainer, RepositoryHandler, ResolverContainer, TaskContainer

public interface DomainObjectContainer<T>
extends DomainObjectCollection<T>

A DomainObjectContainer represents a mutable collection of domain objects of type T.


Method Summary
 Rule addRule(Rule rule)
          Adds a rule to this container.
 java.util.List<Rule> getRules()
          Returns the rules used by this container.
 
Methods inherited from interface org.gradle.api.DomainObjectCollection
allObjects, allObjects, findAll, findByName, getAll, getAsMap, getAt, getByName, getByName, matching, whenObjectAdded, whenObjectAdded, whenObjectRemoved, withType
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

addRule

Rule addRule(Rule rule)
Adds a rule to this container. The given rule is invoked when an unknown object is requested by name.

Parameters:
rule - The rule to add.
Returns:
The added rule.

getRules

java.util.List<Rule> getRules()
Returns the rules used by this container.

Returns:
The rules, in the order they will be applied.