public class ValidatingConfigurationWrapper<T> extends AbstractConfigurationImpl<T> implements Configuration<T>
Collection
as a Configuration
and perform validation that
collected value are of the correct type.Constructor and Description |
---|
ValidatingConfigurationWrapper(Class<T> expectedType,
ObjectLocator locator,
TypeCoercerProxy typeCoercer,
Collection<T> collection,
String serviceId) |
Modifier and Type | Method and Description |
---|---|
void |
add(T object)
Adds an object to the service's contribution.
|
void |
addInstance(Class<? extends T> clazz)
Automatically instantiates an instance of the class, with dependencies injected, and adds it to the
configuration.
|
instantiate
public ValidatingConfigurationWrapper(Class<T> expectedType, ObjectLocator locator, TypeCoercerProxy typeCoercer, Collection<T> collection, String serviceId)
public void add(T object)
Configuration
add
in interface Configuration<T>
object
- to add to the service's configurationpublic void addInstance(Class<? extends T> clazz)
Configuration
addInstance
in interface Configuration<T>
clazz
- what class to instantiate5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.