Package ognl

Interface NullHandler

  • All Known Implementing Classes:
    ObjectNullHandler

    public interface NullHandler
    Interface for handling null results from Chains. Object has the opportunity to substitute an object for the null and continue.
    • Method Detail

      • nullMethodResult

        java.lang.Object nullMethodResult​(OgnlContext context,
                                          java.lang.Object target,
                                          java.lang.String methodName,
                                          java.lang.Object[] args)
        Method called on target returned null.
        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

        java.lang.Object nullPropertyValue​(OgnlContext context,
                                           java.lang.Object target,
                                           java.lang.Object property)
        Property in target evaluated to null. Property can be a constant String property name or a DynamicSubscript.
        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.