public class ClassTransformer extends Object implements PropertyTransformer<Class<?>>
Class object associated with the class or interface
with the given string name. The class is not being initialized. Class.forName(String),
Class.forName(String, boolean, ClassLoader)| Modifier and Type | Field and Description |
|---|---|
static ClassTransformer |
SHARED_INSTANCE
Shared instance.
|
| Constructor and Description |
|---|
ClassTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
transform(String value,
Field field)
This method actually transforms value to object instance
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformpublic static final ClassTransformer SHARED_INSTANCE
public Class<?> transform(String value, Field field) throws TransformationException
PropertyTransformertransform in interface PropertyTransformer<Class<?>>value - value that will be transformedfield - value will be assigned to this fieldTransformationException - if something went wrongCopyright © 2014–2015. All rights reserved.