public class DefaultConfigurationContainer extends AbstractNamedDomainObjectContainer<Configuration> implements ConfigurationContainerInternal, ConfigurationsProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
DETACHED_CONFIGURATION_DEFAULT_NAME |
| Constructor and Description |
|---|
DefaultConfigurationContainer(ArtifactDependencyResolver dependencyResolver,
Instantiator instantiator,
DomainObjectContext context,
ListenerManager listenerManager,
DependencyMetaDataProvider dependencyMetaDataProvider) |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
add(String name)
Adds a configuration with the given name.
|
Configuration |
add(String name,
Closure closure)
Adds a configuration with the given name.
|
protected UnknownDomainObjectException |
createNotFoundException(String name) |
Configuration |
detachedConfiguration(Dependency... dependencies)
Creates a configuration, but does not add it to this container.
|
protected Configuration |
doCreate(String name)
Subclasses need only implement this method as the creation strategy.
|
String |
dump()
Build a formatted representation of all Configurations in this ConfigurationContainer.
|
Set<Configuration> |
getAll() |
ConfigurationInternal |
getByName(String name)
Locates an object by name, failing if there is no such object.
|
String |
getTypeDisplayName() |
configure, create, create, createConfigureDelegate, getDisplayNamefiltered, filteredStore, findAll, matching, matching, withTypeadd, addRule, addRule, assertCanAdd, assertCanAdd, findByName, findByNameWithoutRules, getAsDynamicObject, getAsMap, getAt, getByName, getConvention, getElementsAsDynamicObject, getExtensions, getInstantiator, getNamer, getRules, handleAttemptToAddItemWithNonUniqueName, hasWithName, removeByNameaddAll, all, all, assertMutable, beforeChange, clear, contains, containsAll, createFilter, createFilter, createFilter, filteredEvents, findAll, getEventRegister, getStore, getType, isEmpty, iterator, remove, removeAll, retainAll, size, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypetoArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAt, getByNameconfigure, create, createfindAll, matching, matching, withTypeadd, addAll, addRule, addRule, findByName, getAsMap, getNamer, getRulesall, all, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypepublic static final String DETACHED_CONFIGURATION_DEFAULT_NAME
public DefaultConfigurationContainer(ArtifactDependencyResolver dependencyResolver, Instantiator instantiator, DomainObjectContext context, ListenerManager listenerManager, DependencyMetaDataProvider dependencyMetaDataProvider)
protected Configuration doCreate(String name)
AbstractNamedDomainObjectContainerdoCreate in class AbstractNamedDomainObjectContainer<Configuration>public Set<Configuration> getAll()
getAll in interface ConfigurationsProviderpublic Configuration add(String name)
ConfigurationContaineradd in interface ConfigurationContainername - The name of the new configuration.public Configuration add(String name, Closure closure)
ConfigurationContaineradd in interface ConfigurationContainername - The name of the new configuration.closure - The closure to use to configure the configuration.public ConfigurationInternal getByName(String name)
NamedDomainObjectCollectiongetByName in interface ConfigurationContainergetByName in interface ConfigurationContainerInternalgetByName in interface NamedDomainObjectCollection<Configuration>getByName in class DefaultNamedDomainObjectCollection<Configuration>name - The object namepublic String getTypeDisplayName()
getTypeDisplayName in class DefaultNamedDomainObjectCollection<Configuration>protected UnknownDomainObjectException createNotFoundException(String name)
createNotFoundException in class DefaultNamedDomainObjectCollection<Configuration>public Configuration detachedConfiguration(Dependency... dependencies)
ConfigurationContainerdetachedConfiguration in interface ConfigurationContainerdependencies - The dependencies of the configuration.public String dump()
Copyright © 2013. All rights reserved