Skip to content

Commit

Permalink
Keep method for backward compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Jun 7, 2024
1 parent c1bbd45 commit 26071cf
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
/**
*
*/
@SuppressWarnings("PMD.CouplingBetweenObjects")
public abstract class FreeMarkerConlet<S> extends AbstractConlet<S> {

@SuppressWarnings({ "PMD.VariableNamingConventions",
Expand Down Expand Up @@ -349,6 +350,26 @@ protected void doGetResource(ConletResourceRequest event,
}
}

/**
* Returns a future string providing the result
* from processing the given template with the given data.
*
* The method delegates to
* {@link #processTemplate(Event, Template, Object)}. The version with
* this signature is kept for backward compatibility.
*
* @param request the request, used to obtain the
* {@link ExecutorService} service related with the request being
* processed
* @param template the template
* @param dataModel the data model
* @return the future
*/
public Future<String> processTemplate(RenderConletRequestBase<?> request,
Template template, Object dataModel) {
return processTemplate((Event<?>) request, template, dataModel);
}

/**
* Returns a future string providing the result
* from processing the given template with the given data.
Expand Down

0 comments on commit 26071cf

Please sign in to comment.