T - as input type to ConstructorR - 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, waitapplypublic 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 ClassrequiredConstructorArgs - as array of ClassNoSuchMethodExceptionSecurityExceptionpublic Object transform(Object input)
transform in interface org.apache.commons.collections.Transformerpublic Constructor<R> getRequired()
public void setRequired(Constructor<R> required)
Copyright © 2018. All rights reserved.