com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xwork Show documentation
Show all versions of xwork Show documentation
XWork is an command-pattern framework that is used to power WebWork
as well as other applications. XWork provides an Inversion of Control
container, a powerful expression language, data type conversion,
validation, and pluggable configuration.
The newest version!
package com.opensymphony.xwork2.ognl;
import com.opensymphony.xwork2.conversion.NullHandler;
import java.util.Map;
public class OgnlNullHandlerWrapper implements ognl.NullHandler {
private NullHandler wrapped;
public OgnlNullHandlerWrapper(NullHandler target) {
this.wrapped = target;
}
public Object nullMethodResult(Map context, Object target,
String methodName, Object[] args) {
return wrapped.nullMethodResult(context, target, methodName, args);
}
public Object nullPropertyValue(Map context, Object target, Object property) {
return wrapped.nullPropertyValue(context, target, property);
}
}