private ResourceCache(WebConfiguration config) { this(getCheckPeriod(config)); if (LOGGER.isLoggable(Level.FINE)) { ServletContext sc = config.getServletContext(); LOGGER.log(Level.FINE, "ResourceCache constructed for {0}. Check period is {1} minutes.", new Object[] { getServletContextIdentifier(sc), checkPeriod }); } }
private ResourceCache(WebConfiguration config) { this(getCheckPeriod(config)); if (LOGGER.isLoggable(Level.FINE)) { ServletContext sc = config.getServletContext(); LOGGER.log(Level.FINE, "ResourceCache constructed for {0}. Check period is {1} minutes.", new Object[] { getServletContextIdentifier(sc), checkPeriod }); } }
private ResourceCache(WebConfiguration config) { this(getCheckPeriod(config)); if (LOGGER.isLoggable(Level.FINE)) { ServletContext sc = config.getServletContext(); LOGGER.log(Level.FINE, "ResourceCache constructed for {0}. Check period is {1} minutes.", new Object[] { getServletContextIdentifier(sc), checkPeriod }); } }
private ResourceCache(WebConfiguration config) { this(getCheckPeriod(config)); if (LOGGER.isLoggable(Level.FINE)) { ServletContext sc = config.getServletContext(); LOGGER.log(Level.FINE, "ResourceCache constructed for {0}. Check period is {1} minutes.", new Object[] { getServletContextIdentifier(sc), checkPeriod }); } }
public StateManagerImpl() { FacesContext fContext = FacesContext.getCurrentInstance(); serialProvider = SerializationProviderFactory .createInstance(fContext.getExternalContext()); webConfig = WebConfiguration.getInstance(fContext.getExternalContext()); if (!webConfig.isOptionEnabled(BooleanWebContextInitParameter.DevelopmentMode)) { classMap = new ConcurrentHashMap<String,Class<?>>(32); } generateUniqueStateIds = webConfig.isOptionEnabled(GenerateUniqueServerStateIds); if (generateUniqueStateIds) { random = new Random(System.nanoTime() + webConfig.getServletContext().hashCode()); } else { random = null; } compressViewState = webConfig.isOptionEnabled(BooleanWebContextInitParameter.CompressViewState); }