Interface IInvalidReferenceHandler


@OpenApiAll public interface IInvalidReferenceHandler
This interface is used for handling reference tags, that does not include in the API of the object , which is put into the context of velocity.
  • Method Details

    • methodException

      Object methodException(Class<?> clazz, String method, Exception e, Properties properties)
      Handler a method call exception.
      Parameters:
      clazz - the class of the object the method is being applied to
      method - the method
      e - the thrown exception
      properties - the engine properties
      Returns:
      return value
    • invalidProperty

      Object invalidProperty(String reference, Object object, String property, Properties properties)
      Invoke when getter method of object is not defined.
      Parameters:
      reference - string with complete reference
      object - the object referred to, or null if not found
      property - the property name from the reference
      properties - the engine properties
      Returns:
      return value
    • invalidReference

      Object invalidReference(String reference, Object object, String property, Properties properties)
      Handle reference tag and return the proper value.
      Parameters:
      reference - string with complete reference
      object - the object referred to, or null if not found
      property - the property name from the reference
      properties - the engine properties
      Returns:
      return value
    • invalidMethod

      Object invalidMethod(String reference, Object object, String method, Properties properties)
      Handle reference method and return the proper value.
      Parameters:
      reference - string with complete reference
      object - the object referred to, or null if not found
      method - the property name from the reference
      properties - the engine properties
      Returns:
      return value