Tabnine Logo
PrettyConfigReloader
Code IndexAdd Tabnine to your IDE (free)

How to use
PrettyConfigReloader
in
com.ocpsoft.pretty.faces.config.reload

Best Java code snippets using com.ocpsoft.pretty.faces.config.reload.PrettyConfigReloader (Showing top 8 results out of 315)

origin: ocpsoft/prettyfaces

developmentMode = isDevelopmentModeActive(servletContext);
origin: ocpsoft/rewrite

@Override
public void beforeInboundLifecycle(final HttpServletRewrite event)
{
 HttpServletRequest request = event.getRequest();
 ServletContext servletContext = event.getServletContext();
 // we may need to reload the configuration if in development mode
 reloader.reloadIfNecessary(servletContext);
 // we need the PrettyConfig later, so save it as a request attribute
 if (request.getAttribute(PrettyContext.CONFIG_KEY) == null)
 {
   PrettyConfig config = (PrettyConfig) servletContext.getAttribute(PrettyContext.CONFIG_KEY);
   request.setAttribute(PrettyContext.CONFIG_KEY, config);
 }
 // build the PrettyContext and attach it to the request
 if (request.getAttribute(UrlMappingRuleAdaptor.REWRITE_MAPPING_ID_KEY) == null) {
   PrettyContext context = PrettyContext.newDetachedInstance(request);
   PrettyContext.setCurrentContext(event.getRequest(), context);
 }
}
origin: ocpsoft/prettyfaces

reloader.onNewRequest(servletContext);
origin: com.ocpsoft/prettyfaces-jsf2

reloader.onNewRequest(servletContext);
origin: ocpsoft/rewrite

developmentMode = isDevelopmentModeActive(servletContext);
origin: ocpsoft/prettyfaces

reloader.onNewRequest(servletContext);
origin: com.ocpsoft/prettyfaces-jsf2

developmentMode = isDevelopmentModeActive(servletContext);
origin: ocpsoft/prettyfaces

developmentMode = isDevelopmentModeActive(servletContext);
com.ocpsoft.pretty.faces.config.reloadPrettyConfigReloader

Javadoc

This class reloads the PrettyFaces configuration if PrettyFaces runs in development mode.

Most used methods

  • isDevelopmentModeActive
    Detects the PrettyFaces development mode using the DevelopmentModeDetector SPI.
  • onNewRequest
    Called from PrettyFilter#doFilter(javax.servlet.ServletRequest,javax.servlet.ServletResponse,javax.s
  • reloadIfNecessary

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • BoxLayout (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now