TemplateContext

public final class TemplateContext

A context object for templates that allows caches to validate existing templates or create new ones. If two template contexts are equal (via equals) then the templates they produce are interchangeable.

Template contexts are created by the frontend and passed through to backend implementations via the LogData interface.

Constructors

Link copied to clipboard
public void TemplateContext(MessageParser parser, String message)
Creates a template context for a log statement.

Properties

Link copied to clipboard
public final String message
Link copied to clipboard
public final MessageParser parser

Functions

Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
public String getMessage()
Returns the message for the log statement.
Link copied to clipboard
Returns the message parser for the log statement.
Link copied to clipboard
public int hashCode()