T - The supported class.public class SingleValueProvider<T> extends GenericValueProvider<T>
| Constructor and Description |
|---|
SingleValueProvider(Class<T> acceptedClass,
T value) |
| Modifier and Type | Method and Description |
|---|---|
Object |
provide(Class<?> parameterClass,
Method setterMethod)
Provides a value for the given class.
|
canProvidepublic Object provide(Class<?> parameterClass, Method setterMethod)
ValueProviderprovide in interface ValueProviderprovide in class GenericValueProvider<T>parameterClass - The class to provide a value for.setterMethod - The setter method of the property being set.Copyright © 2018. All rights reserved.