public class MCUtil extends Object
MCElement-annotatated objects
(from/to a Spring-based XML configuration file).
The serialization process may fail: This occurs when non-MCElement-annotated objects are contained
in the object tree. This is, for example, the case in the JDBC logging example, where the DataSource is a
spring bean *not* created using MCElement annotations.
In case of a serialization failure, the resuling XML cannot be used to reconstruct the object tree.| Constructor and Description |
|---|
MCUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
clone(T object,
boolean deep) |
static <T> T |
fromXML(Class<T> clazz,
String xml) |
static String |
toXML(Object object) |
Copyright © 2021. All Rights Reserved.