WebConfiguration.getInstance
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.sun.faces.config.WebConfiguration.getInstance(Showing top 15 results out of 315)

  • Common ways to obtain WebConfiguration
private void myMethod () {
WebConfiguration w =
  • WebConfiguration.getInstance()
  • ServletContext servletContext;WebConfiguration.getInstance(servletContext)
  • FacesContext facesContext;WebConfiguration.getInstance(facesContext.getExternalContext())
  • Smart code suggestions by Codota
}
origin: com.sun.faces/jsf-impl

@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;
}
origin: com.sun.faces/jsf-impl

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, " ");
}

origin: com.sun.faces/jsf-impl

/**
 * 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();
}
origin: com.sun.faces/jsf-impl

/**
 * Constructs a new ResourceCache.
 */
public ResourceCache() {
  this(WebConfiguration.getInstance());
}
origin: org.glassfish/javax.faces

public ViewHandlingStrategy() {
  FacesContext ctx = FacesContext.getCurrentInstance();
  webConfig = WebConfiguration.getInstance(ctx.getExternalContext());
  associate = ApplicationAssociate.getInstance(ctx.getExternalContext());
}

origin: com.sun.faces/jsf-impl

public ResponseStateManagerImpl() {
  WebConfiguration webConfig = WebConfiguration.getInstance();
  String stateMode =
     webConfig.getOptionValue(StateSavingMethod);
  helper = ((StateManager.STATE_SAVING_METHOD_CLIENT.equalsIgnoreCase(stateMode)
        ? new ClientSideStateHelper()
        : new ServerSideStateHelper()));
}
origin: com.sun.faces/jsf-impl

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>();
}
origin: com.sun.faces/jsf-impl

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);
}

origin: com.sun.faces/jsf-impl

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);
}
origin: org.glassfish/javax.faces

public FaceletWebappResourceHelper() {
  WebConfiguration webConfig = WebConfiguration.getInstance();
  webAppContractsDirectory = webConfig.getOptionValue(WebAppContractsDirectory);
  configuredExtensions = webConfig.getOptionValue(FaceletsSuffix, " ");
}
origin: org.glassfish/javax.faces

private static boolean isDevModeEnabled() {
  WebConfiguration webconfig = WebConfiguration.getInstance();
  return (webconfig != null
       && "Development".equals(webconfig.getOptionValue(WebContextInitParameter.JavaxFacesProjectStage)));
}

origin: org.glassfish/javax.faces

public ClasspathResourceHelper() {
  WebConfiguration webconfig = WebConfiguration.getInstance();
  cacheTimestamp = webconfig.isOptionEnabled(CacheResourceModificationTimestamp);
  enableMissingResourceLibraryDetection =
      webconfig.isOptionEnabled(EnableMissingResourceLibraryDetection);
}
origin: com.sun.faces/jsf-impl

private static boolean isDevModeEnabled() {
  WebConfiguration webconfig = WebConfiguration.getInstance();
  return (webconfig != null
       && "Development".equals(webconfig.getOptionValue(WebContextInitParameter.JavaxFacesProjectStage)));
}

origin: com.sun.faces/jsf-impl

/**
 * 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();
}
origin: com.sun.faces/jsf-impl

public ClasspathResourceHelper() {
  WebConfiguration webconfig = WebConfiguration.getInstance();
  cacheTimestamp = webconfig.isOptionEnabled(CacheResourceModificationTimestamp);
  enableMissingResourceLibraryDetection =
      webconfig.isOptionEnabled(EnableMissingResourceLibraryDetection);
}
com.sun.faces.configWebConfigurationgetInstance

Javadoc

Return the WebConfiguration instance for this application passing the result of FacesContext.getCurrentInstance().getExternalContext() to #getInstance(javax.faces.context.ExternalContext).

Popular methods of WebConfiguration

  • isSet
  • overrideContextInitParameter
  • <init>
  • canProcessJndiEntries
  • clear
  • getOptionValue
  • getServletContext
  • getServletContextName
  • initSetList
    Adds all com.sun.faces init parameter names to a list. This allows callers to determine if a paramet
  • isOptionEnabled
    Obtain the value of the specified boolean parameter
  • isValueValid
    Is the configured value valid against the default boolean pattern.
  • processBooleanParameters
    Process all boolean context initialization parameters.
  • isValueValid,
  • processBooleanParameters,
  • processInitParameters,
  • processJndiEntries,
  • discoverResourceLibraryContracts,
  • doPostBringupActions,
  • getConfiguredExtensions,
  • getEnvironmentEntry,
  • getFaceletsConfiguration

Popular classes and methods

  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • GridLayout (java.awt)
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • SortedMap (java.util)
    A Map that further provides a total ordering on its keys. The map is ordered according to the Compar
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)