public class ServiceUtil extends Object
| Constructor and Description |
|---|
ServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
construct(Object something)
Instantiates and returns an object out of a given configuration.
|
static Object |
constructByNamedParams(Class clazz,
Map params)
Build an object out of a given class and a map for field names to values.
|
static Object |
constructByParameterizedConstructor(Class clazz,
List parameters)
Build an object out of a given class and a list of single element maps of object type to value.
|
public static Object construct(Object something) throws Exception
Exceptionpublic static Object constructByNamedParams(Class clazz, Map params) throws Exception
clazz - The class to be created.params - A map of the parameters.Exceptionpublic static Object constructByParameterizedConstructor(Class clazz, List parameters) throws Exception
clazz - The class to be created.parameters - A list of single element maps of object type to value.ExceptionCopyright © 2019. All rights reserved.