From bd1f76dba80b4ee74906e30dc932d7e409ef8a33 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Mon, 23 Jun 2014 20:47:42 -0700 Subject: Adding a domain label to the header. The page header now displays the domain label if the domain is not prod. This is useful for quickly identifying if you are modifying prod data. --- src/com/p4square/fmfacade/FMFacade.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/com/p4square/fmfacade/FMFacade.java') diff --git a/src/com/p4square/fmfacade/FMFacade.java b/src/com/p4square/fmfacade/FMFacade.java index 54e4098..0e552b0 100644 --- a/src/com/p4square/fmfacade/FMFacade.java +++ b/src/com/p4square/fmfacade/FMFacade.java @@ -18,8 +18,10 @@ import freemarker.template.Template; import org.apache.log4j.Logger; +import com.p4square.grow.config.Config; + /** - * + * * @author Jesse Morgan */ public class FMFacade extends Application { @@ -32,11 +34,18 @@ public class FMFacade extends Application { mFMConfig.setObjectWrapper(new DefaultObjectWrapper()); } + /** + * @return a Config object. + */ + public Config getConfig() { + return null; + } + @Override public synchronized Restlet createInboundRoot() { return createRouter(); } - + /** * Retrieve a template. * @@ -75,7 +84,7 @@ public class FMFacade extends Application { component.getServers().add(Protocol.HTTP, 8085); component.getClients().add(Protocol.HTTP); component.getDefaultHost().attach(new FMFacade()); - + // Setup shutdown hook Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { -- cgit v1.2.3