T - the (base) container element type@Incubating public interface ExtensiblePolymorphicDomainObjectContainer<T> extends PolymorphicDomainObjectContainer<T>
PolymorphicDomainObjectContainer that can be extended at runtime to
create elements of new types.| Modifier and Type | Method and Description |
|---|---|
<U extends T> |
registerFactory(Class<U> type,
NamedDomainObjectFactory<? extends U> factory)
Registers a factory for creating elements of the specified type.
|
create, createconfigure, create, create, maybeCreatefindAll, matching, matching, withTypeadd, addAll, addRule, addRule, findByName, getAsMap, getAt, getByName, getByName, getNamer, getRulesall, all, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withType<U extends T> void registerFactory(Class<U> type, NamedDomainObjectFactory<? extends U> factory)
U - the type of objects created by the factorytype - the type of objects created by the factoryfactory - the factory to registerIllegalArgumentException - if the specified type is not a subtype of the container element type