public interface ValueLoaderSource
StatelessValueLoader
instances.Modifier and Type | Method and Description |
---|---|
void |
init(Class<?> type,
boolean isCaseSensitive,
Map<String,String> aliasMappings,
ObjectInstantiator objectInstantiator)
Initialise.
|
<T> ValueLoaderFactory<T> |
sourceValueLoaderFactory(Class<T> clazz)
Sources the
ValueLoaderFactory . |
void init(Class<?> type, boolean isCaseSensitive, Map<String,String> aliasMappings, ObjectInstantiator objectInstantiator) throws Exception
type
- Type to interrogate for properties to be loaded.isCaseSensitive
- Flag indicating if case sensitive matching.aliasMappings
- Alias Mappings.objectInstantiator
- ObjectInstantiator
.Exception
- If fails to initialise.<T> ValueLoaderFactory<T> sourceValueLoaderFactory(Class<T> clazz) throws Exception
Sources the ValueLoaderFactory
.
The returned ValueLoaderFactory
is specific to the input
Class
. The ValueLoaderFactory
will not work with children
of the Class
. A new ValueLoaderFactory
must be created
for each child type.
T
- Class
type.clazz
- Class
for a dedicated ValueLoaderFactory
. It
is expected that all property methods on the type
are on this clazz
.ValueLoaderFactory
.Exception
- If fails to source the ValueLoaderFactory
.Copyright © 2005–2016. All rights reserved.