For IntelliJ IDEA,
Android Studio or Eclipse



private void myMethod () {WebConfiguration w =
WebConfiguration.getInstance()
ServletContext servletContext;WebConfiguration.getInstance(servletContext)
FacesContext facesContext;WebConfiguration.getInstance(facesContext.getExternalContext())
- Smart code suggestions by Codota
}
@Override public FaceletCache getFaceletCache() { WebConfiguration webConfig = WebConfiguration.getInstance(); String refreshPeriod = webConfig.getOptionValue(WebConfiguration.WebContextInitParameter.FaceletsDefaultRefreshPeriod); long period = Long.parseLong(refreshPeriod) * 1000; FaceletCache<DefaultFacelet> result = new DefaultFaceletCache(period); return result; }
public ViewHandlerImpl() { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE,"Created ViewHandler instance "); } WebConfiguration config = WebConfiguration.getInstance(); String defaultSuffixConfig = config.getOptionValue(WebConfiguration.WebContextInitParameter.DefaultSuffix); Map<String, Object> appMap = FacesContext.getCurrentInstance().getExternalContext().getApplicationMap(); configuredExtensions = Util.split(appMap, defaultSuffixConfig, " "); }
/** * Creates a new instance of ResourceHandlerImpl */ public ResourceHandlerImpl() { creationTime = System.currentTimeMillis(); webconfig = WebConfiguration.getInstance(); ExternalContext extContext = FacesContext.getCurrentInstance().getExternalContext(); manager = ApplicationAssociate.getInstance(extContext).getResourceManager(); initExclusions(extContext.getApplicationMap()); initMaxAge(); }
/** * Constructs a new ResourceCache. */ public ResourceCache() { this(WebConfiguration.getInstance()); }
public ViewHandlingStrategy() { FacesContext ctx = FacesContext.getCurrentInstance(); webConfig = WebConfiguration.getInstance(ctx.getExternalContext()); associate = ApplicationAssociate.getInstance(ctx.getExternalContext()); }
public ResponseStateManagerImpl() { WebConfiguration webConfig = WebConfiguration.getInstance(); String stateMode = webConfig.getOptionValue(StateSavingMethod); helper = ((StateManager.STATE_SAVING_METHOD_CLIENT.equalsIgnoreCase(stateMode) ? new ClientSideStateHelper() : new ServerSideStateHelper())); }
public MultiViewHandler() { WebConfiguration config = WebConfiguration.getInstance(); configuredExtensions = config.getConfiguredExtensions(); extensionsSet = config.isSet(WebConfiguration.WebContextInitParameter.DefaultSuffix); vdlFactory = (ViewDeclarationLanguageFactory) FactoryFinder.getFactory(FactoryFinder.VIEW_DECLARATION_LANGUAGE_FACTORY); protectedViews = new CopyOnWriteArraySet<String>(); }
private void postConstructApplicationInitialization() { FacesContext context = FacesContext.getCurrentInstance(); ExternalContext extContext = context.getExternalContext(); config = WebConfiguration.getInstance(extContext); String optionValue = config.getOptionValue(WebConfiguration.WebContextInitParameter.ClientWindowMode); isClientWindowEnabled = (null != optionValue) && "url".equals(optionValue); }
public WebappResourceHelper() { WebConfiguration webconfig = WebConfiguration.getInstance(); cacheTimestamp = webconfig.isOptionEnabled(CacheResourceModificationTimestamp); BASE_RESOURCE_PATH = webconfig.getOptionValue(WebConfiguration.WebContextInitParameter.WebAppResourcesDirectory); BASE_CONTRACTS_PATH = webconfig.getOptionValue(WebConfiguration.WebContextInitParameter.WebAppContractsDirectory); }
public FaceletWebappResourceHelper() { WebConfiguration webConfig = WebConfiguration.getInstance(); webAppContractsDirectory = webConfig.getOptionValue(WebAppContractsDirectory); configuredExtensions = webConfig.getOptionValue(FaceletsSuffix, " "); }
private static boolean isDevModeEnabled() { WebConfiguration webconfig = WebConfiguration.getInstance(); return (webconfig != null && "Development".equals(webconfig.getOptionValue(WebContextInitParameter.JavaxFacesProjectStage))); }
public ClasspathResourceHelper() { WebConfiguration webconfig = WebConfiguration.getInstance(); cacheTimestamp = webconfig.isOptionEnabled(CacheResourceModificationTimestamp); enableMissingResourceLibraryDetection = webconfig.isOptionEnabled(EnableMissingResourceLibraryDetection); }
private static boolean isDevModeEnabled() { WebConfiguration webconfig = WebConfiguration.getInstance(); return (webconfig != null && "Development".equals(webconfig.getOptionValue(WebContextInitParameter.JavaxFacesProjectStage))); }
/** * Creates a new instance of ResourceHandlerImpl */ public ResourceHandlerImpl() { creationTime = System.currentTimeMillis(); webconfig = WebConfiguration.getInstance(); ExternalContext extContext = FacesContext.getCurrentInstance().getExternalContext(); manager = ApplicationAssociate.getInstance(extContext).getResourceManager(); initExclusions(extContext.getApplicationMap()); initMaxAge(); }
public ClasspathResourceHelper() { WebConfiguration webconfig = WebConfiguration.getInstance(); cacheTimestamp = webconfig.isOptionEnabled(CacheResourceModificationTimestamp); enableMissingResourceLibraryDetection = webconfig.isOptionEnabled(EnableMissingResourceLibraryDetection); }