T
- as input type to Constructor
R
- as required output typepublic class ConstructEntityTransformer<T,R> extends Object implements FunctionTransformer<T,R>
Constructor
for type required
; produce the object of type Constructor and Description |
---|
ConstructEntityTransformer() |
ConstructEntityTransformer(Class<R> requiredClass,
Class<R>[] requiredConstructorArgs)
Exists as a convenience alternate to
ConstructEntityTransformer(Constructor) for Spring SpeL configs. |
ConstructEntityTransformer(Constructor<R> required)
Constructor of the required Class . |
Modifier and Type | Method and Description |
---|---|
Constructor<R> |
getRequired() |
void |
setRequired(Constructor<R> required) |
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public ConstructEntityTransformer()
public ConstructEntityTransformer(Constructor<R> required)
Constructor
of the required Class
.
TODO: remove, if SPeL better alternative exists
E.g.: of expressions tried and failed public ConstructEntityTransformer(Class<R> requiredClass, Class<R>[] requiredConstructorArgs) throws NoSuchMethodException, SecurityException
ConstructEntityTransformer(Constructor)
for Spring SpeL configs.requiredClass
- as Class
requiredConstructorArgs
- as array of Class
NoSuchMethodException
SecurityException
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public Constructor<R> getRequired()
public void setRequired(Constructor<R> required)
Copyright © 2018. All rights reserved.