I tried creating a custom TemplateProcessor instance like the
JSPTemplateProcessor using a similar constructor... (I'm experimenting
using LiftWeb.net's templates with Jersey 1.0.3 - I'm slowly being
drawn to scala...)
My class declaration mirrors that of JSPTemplateProcessor.... Yet the
constructor parameters are all null. Any ideas what I'm doing wrong? I
notice JSPTemplateProcessor isn't annotated with @Provider - so is
this special injection only available to JSPTemplateProcessor?
@Provider
public class LiftTemplateProcessor implements TemplateProcessor {
@Context
HttpContext hc;
@Context
ServletContext servletContext;
@Context
UriInfo ui;
private final ThreadLocal<HttpServletRequest> requestInvoker;
private final ThreadLocal<HttpServletResponse> responseInvoker;
private final String basePath;
public LiftTemplateProcessor(
ResourceConfig resourceConfig,
ThreadLocal<HttpServletRequest> requestInvoker,
ThreadLocal<HttpServletResponse> responseInvoker) {
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/