public static boolean isTypedObject(Object encodedObject) { boolean typed = false; if (encodedObject instanceof ASObject) { typed = TypeMarshallingContext.getType(encodedObject) != null; } return typed; }
public Object createShell(Object encodedObject, Class desiredClass) { Object shell = null; Class cls; String type = TypeMarshallingContext.getType(encodedObject); if (type != null) { TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext(); cls = ClassUtil.createClass(type, context.getClassLoader()); } else { cls = desiredClass; } shell = ClassUtil.createDefaultInstance(cls, null); return shell; }
public Object createShell(Object encodedObject, Class desiredClass) { Object shell = null; Class cls; String type = TypeMarshallingContext.getType(encodedObject); if (type != null) { TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext(); cls = ClassUtil.createClass(type, context.getClassLoader()); } else { cls = desiredClass; } shell = ClassUtil.createDefaultInstance(cls, null); return shell; }
public static boolean isTypedObject(Object encodedObject) { boolean typed = false; if (encodedObject instanceof ASObject) { typed = TypeMarshallingContext.getType(encodedObject) != null; } return typed; }
public Object createShell(Object encodedObject, Class desiredClass) { Object shell = null; Class cls; String type = TypeMarshallingContext.getType(encodedObject); if (type != null) { TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext(); cls = ClassUtil.createClass(type, context.getClassLoader()); } else { cls = desiredClass; } shell = ClassUtil.createDefaultInstance(cls, null); return shell; }
public static boolean isTypedObject(Object encodedObject) { boolean typed = false; if (encodedObject instanceof ASObject) { typed = TypeMarshallingContext.getType((ASObject)encodedObject) != null; } return typed; }