Package org.apache.struts2.json
Class JSONPopulator
java.lang.Object
org.apache.struts2.json.JSONPopulator
Isolate the process of populating JSON objects from the Interceptor class
itself.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
populateObject
(Object object, Map elements) void
setDateFormat
(String dateFormat)
-
Constructor Details
-
JSONPopulator
public JSONPopulator() -
JSONPopulator
-
-
Method Details
-
getDateFormat
-
setDateFormat
-
populateObject
public void populateObject(Object object, Map elements) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, IntrospectionException, IllegalArgumentException, JSONException, InstantiationException -
convert
public Object convert(Class clazz, Type type, Object value, Method method) throws IllegalArgumentException, JSONException, IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException, IntrospectionException
-