com.ocpsoft.pretty.faces.config.reload
Class JSF2DevelopmentModeDetector

java.lang.Object
  extended by com.ocpsoft.pretty.faces.config.reload.JSF2DevelopmentModeDetector
All Implemented Interfaces:
com.ocpsoft.pretty.faces.spi.DevelopmentModeDetector

public class JSF2DevelopmentModeDetector
extends Object
implements com.ocpsoft.pretty.faces.spi.DevelopmentModeDetector

Implementation of DevelopmentModeDetector that checks for the JSF project stage the application runs in. If the project stage isn't set to Production, the PrettyFaces development mode will be enabled.

Author:
Christian Kaltepoth

Constructor Summary
JSF2DevelopmentModeDetector()
           
 
Method Summary
 int getPriority()
           
 Boolean isDevelopmentMode(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSF2DevelopmentModeDetector

public JSF2DevelopmentModeDetector()
Method Detail

getPriority

public int getPriority()
Specified by:
getPriority in interface com.ocpsoft.pretty.faces.spi.DevelopmentModeDetector

isDevelopmentMode

public Boolean isDevelopmentMode(javax.servlet.ServletContext servletContext)
Specified by:
isDevelopmentMode in interface com.ocpsoft.pretty.faces.spi.DevelopmentModeDetector


Copyright © 2012. All Rights Reserved.