T - public class ValidatingOrderedConfigurationWrapper<T> extends AbstractConfigurationImpl<T> implements OrderedConfiguration<T>
List as a OrderedConfiguration, implementing validation of
values provided to an OrderedConfiguration.| Constructor and Description |
|---|
ValidatingOrderedConfigurationWrapper(java.lang.Class<T> expectedType,
ObjectLocator locator,
TypeCoercerProxy typeCoercer,
Orderer<T> orderer,
java.util.Map<java.lang.String,org.apache.tapestry5.ioc.internal.OrderedConfigurationOverride<T>> overrides,
ContributionDef contribDef) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String id,
T object,
java.lang.String... constraints)
Adds an ordered object to a service's contribution.
|
void |
addInstance(java.lang.String id,
java.lang.Class<? extends T> clazz,
java.lang.String... constraints)
Adds an ordered object by instantiating (with dependencies) the indicated class.
|
void |
override(java.lang.String id,
T object,
java.lang.String... constraints)
Overrides a normally contributed object.
|
void |
overrideInstance(java.lang.String id,
java.lang.Class<? extends T> clazz,
java.lang.String... constraints)
Instantiates an object and adds it as an override.
|
instantiatepublic ValidatingOrderedConfigurationWrapper(java.lang.Class<T> expectedType, ObjectLocator locator, TypeCoercerProxy typeCoercer, Orderer<T> orderer, java.util.Map<java.lang.String,org.apache.tapestry5.ioc.internal.OrderedConfigurationOverride<T>> overrides, ContributionDef contribDef)
public void add(java.lang.String id, T object, java.lang.String... constraints)
OrderedConfigurationadd in interface OrderedConfiguration<T>id - a unique id for the object; the id will be fully qualified with the contributing module's idobject - to add to the service's configurationconstraints - used to order the object relative to other contributed objectspublic void override(java.lang.String id, T object, java.lang.String... constraints)
OrderedConfigurationoverride in interface OrderedConfiguration<T>id - identifies object to overrideobject - overriding object (may be null)constraints - constraints for the overridden object, replacing constraints for the original object (even if
omitted, in which case the override object will have no ordering constraints)public void addInstance(java.lang.String id, java.lang.Class<? extends T> clazz, java.lang.String... constraints)
OrderedConfigurationaddInstance in interface OrderedConfiguration<T>id - of contribution (used for ordering)clazz - class to instantiateconstraints - used to order the object relative to other contributed objectspublic void overrideInstance(java.lang.String id, java.lang.Class<? extends T> clazz, java.lang.String... constraints)
OrderedConfigurationoverrideInstance in interface OrderedConfiguration<T>id - of object to overrideclazz - to instantiateconstraints - constraints for the overridden object, replacing constraints for the original object (even if
omitted, in which case the override object will have no ordering constraints)${project.version} - Copyright © 2003-2015 The Apache Software Foundation.