public class XUtil extends Object
Constructor and Description |
---|
XUtil() |
Modifier and Type | Method and Description |
---|---|
static Object |
getClassInstance(XMLTable classRecs,
String classField,
Object[] constructorParas)
Construct instance of class specified in classRecs,
return object instantiated with constructorParas.
For ex.: Object[] p = new Object[2]; p[0] = res; p[1] = skinid; skin = (IMetronomeSkin) XUtil.getClassInstance(st, "class", p); |
public static Object getClassInstance(XMLTable classRecs, String classField, Object[] constructorParas) throws Exception
classRecs
- xtable for class config.classField
- class name field's nameconstructorParas
- paras for constructing new instance.Exception
Copyright © 2024. All rights reserved.