public class FactoryNamedDomainObjectContainer<T> extends AbstractNamedDomainObjectContainer<T>
| Constructor and Description |
|---|
FactoryNamedDomainObjectContainer(Class<T> type,
Instantiator instantiator)
Creates a container that instantiates reflectively, expecting a 1 arg constructor taking the name.
|
FactoryNamedDomainObjectContainer(Class<T> type,
Instantiator instantiator,
Closure factoryClosure)
Creates a container that instantiates using the given factory.
|
FactoryNamedDomainObjectContainer(Class<T> type,
Instantiator instantiator,
NamedDomainObjectFactory<T> factory)
Creates a container that instantiates using the given factory.
|
FactoryNamedDomainObjectContainer(Class<T> type,
Instantiator instantiator,
Namer<? super T> namer)
Creates a container that instantiates reflectively, expecting a 1 arg constructor taking the name.
|
FactoryNamedDomainObjectContainer(Class<T> type,
Instantiator instantiator,
Namer<? super T> namer,
Closure factoryClosure)
Creates a container that instantiates using the given factory.
|
FactoryNamedDomainObjectContainer(Class<T> type,
Instantiator instantiator,
Namer<? super T> namer,
NamedDomainObjectFactory<T> factory)
Creates a container that instantiates using the given factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
doCreate(String name)
Subclasses need only implement this method as the creation strategy.
|
configure, create, create, createConfigureDelegate, getDisplayNamefiltered, filteredStore, findAll, matching, matching, withTypeadd, addRule, addRule, assertCanAdd, assertCanAdd, createNotFoundException, findByName, findByNameWithoutRules, getAsDynamicObject, getAsMap, getAt, getByName, getByName, getConvention, getElementsAsDynamicObject, getExtensions, getInstantiator, getNamer, getRules, getTypeDisplayName, 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, waitfindAll, matching, matching, withTypeadd, addAll, addRule, addRule, findByName, getAsMap, getAt, getByName, getByName, getNamer, getRulesall, all, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypepublic FactoryNamedDomainObjectContainer(Class<T> type, Instantiator instantiator)
Creates a container that instantiates reflectively, expecting a 1 arg constructor taking the name.
The type must implement the Named interface as a Namer will be created based on this type.
type - The concrete type of element in the container (must implement Named)instantiator - The instantiator to use to create any other collections based on this onepublic FactoryNamedDomainObjectContainer(Class<T> type, Instantiator instantiator, Namer<? super T> namer)
Creates a container that instantiates reflectively, expecting a 1 arg constructor taking the name.
type - The concrete type of element in the container (must implement Named)instantiator - The instantiator to use to create any other collections based on this onenamer - The naming strategy to usepublic FactoryNamedDomainObjectContainer(Class<T> type, Instantiator instantiator, NamedDomainObjectFactory<T> factory)
Creates a container that instantiates using the given factory.
type - The concrete type of element in the container (must implement Named)instantiator - The instantiator to use to create any other collections based on this onefactory - The factory responsible for creating new instances on demandpublic FactoryNamedDomainObjectContainer(Class<T> type, Instantiator instantiator, Namer<? super T> namer, NamedDomainObjectFactory<T> factory)
Creates a container that instantiates using the given factory.
type - The concrete type of element in the containerinstantiator - The instantiator to use to create any other collections based on this onenamer - The naming strategy to usefactory - The factory responsible for creating new instances on demandpublic FactoryNamedDomainObjectContainer(Class<T> type, Instantiator instantiator, Closure factoryClosure)
Creates a container that instantiates using the given factory.
type - The concrete type of element in the container (must implement Named)instantiator - The instantiator to use to create any other collections based on this onefactoryClosure - The closure responsible for creating new instances on demandpublic FactoryNamedDomainObjectContainer(Class<T> type, Instantiator instantiator, Namer<? super T> namer, Closure factoryClosure)
Creates a container that instantiates using the given factory.
type - The concrete type of element in the containerinstantiator - The instantiator to use to create any other collections based on this onenamer - The naming strategy to usefactoryClosure - The factory responsible for creating new instances on demandprotected T doCreate(String name)
AbstractNamedDomainObjectContainerdoCreate in class AbstractNamedDomainObjectContainer<T>Copyright © 2013. All rights reserved