01: package org.directwebremoting.webwork;
02:
03: /**
04: * Default implementation of <code>AjaxDataResult</code>
05: * @author <a href='mailto:the_mindstorm[at]evolva[dot]ro'>Alexandru Popescu</a>
06: */
07: public class DefaultAjaxDataResult implements AjaxDataResult {
08: private Object data;
09:
10: /**
11: * Sole constructor.
12: *
13: * @param data the wrapped result object
14: */
15: public DefaultAjaxDataResult(Object data) {
16: this .data = data;
17: }
18:
19: /**
20: * @see org.directwebremoting.webwork.AjaxDataResult#getData()
21: */
22: public Object getData() {
23: return data;
24: }
25:
26: }
|