Page Renderer prototype point checkin

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6842 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-09-20 14:21:04 +00:00
parent bdea4b33d9
commit d71b009b6b
7 changed files with 808 additions and 8 deletions

View File

@@ -56,10 +56,10 @@ import freemarker.template.TemplateExceptionHandler;
public class TemplateProcessor extends FreeMarkerProcessor implements ApplicationContextAware, ApplicationListener
{
private ProcessorLifecycle lifecycle = new ProcessorLifecycle();
private TemplateLoader templateLoader = null;
private String defaultEncoding;
private Configuration templateConfig;
private FreeMarkerProcessor freeMarkerProcessor;
protected TemplateLoader templateLoader = null;
protected String defaultEncoding;
protected Configuration templateConfig;
protected FreeMarkerProcessor freeMarkerProcessor;
/* (non-Javadoc)
@@ -154,6 +154,9 @@ public class TemplateProcessor extends FreeMarkerProcessor implements Applicatio
// rethrow any exception so we can deal with them
config.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
// turn off locale sensitive lookup - to save numerous wasted calls to nodeservice.exists()
config.setLocalizedLookup(false);
// set template encoding
if (defaultEncoding != null)
{

View File

@@ -54,13 +54,13 @@ public class WebScriptServlet extends HttpServlet
private static final Log logger = LogFactory.getLog(WebScriptServlet.class);
// Component Dependencies
private DeclarativeWebScriptRegistry registry;
private ServiceRegistry serviceRegistry;
private WebScriptServletAuthenticator authenticator;
protected DeclarativeWebScriptRegistry registry;
protected ServiceRegistry serviceRegistry;
protected WebScriptServletAuthenticator authenticator;
protected ConfigService configService;
/** Host Server Configuration */
private static ServerConfigElement serverConfig;
protected static ServerConfigElement serverConfig;
@Override