Class ObjectNullHandler
java.lang.Object
ognl.ObjectNullHandler
- All Implemented Interfaces:
NullHandler
Implementation of NullHandler that returns null in all cases,
so that NullPointerException will be thrown by the caller.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnullMethodResult(OgnlContext context, Object target, String methodName, Object[] args) Method called on target returned null.nullPropertyValue(OgnlContext context, Object target, Object property) Property in target evaluated to null.
-
Constructor Details
-
ObjectNullHandler
public ObjectNullHandler()
-
-
Method Details
-
nullMethodResult
public Object nullMethodResult(OgnlContext context, Object target, String methodName, Object[] args) Description copied from interface:NullHandlerMethod called on target returned null.- Specified by:
nullMethodResultin interfaceNullHandler- Parameters:
context- the current execution context.target- the Object on which the method was called.methodName- the name of the method which was called.args- the arguments to the method that was called.- Returns:
- the result Object containing the state of the method call that returned null.
-
nullPropertyValue
Description copied from interface:NullHandlerProperty in target evaluated to null. Property can be a constant String property name or a DynamicSubscript.- Specified by:
nullPropertyValuein interfaceNullHandler- Parameters:
context- the current execution context.target- the Object to which the property belongs.property- the property whose value evaluated to null.- Returns:
- the result Object containing the state of the property that evaluated to null.
-