Tabnine Logo
CurrentThreadToServletContext.getApplicationFactoryManager
Code IndexAdd Tabnine to your IDE (free)

How to use
getApplicationFactoryManager
method
in
javax.faces.CurrentThreadToServletContext

Best Java code snippets using javax.faces.CurrentThreadToServletContext.getApplicationFactoryManager (Showing top 20 results out of 315)

origin: javax/javaee-web-api

FactoryFinderInstance getApplicationFactoryManager(boolean create) {
  ClassLoader cl = getClassLoader();
  FactoryFinderInstance result = getApplicationFactoryManager(cl, create);
  return result;
}

origin: com.sun.faces/jsf-api

FactoryFinderInstance getApplicationFactoryManager() {
  ClassLoader cl = getClassLoader();
    FactoryFinderInstance result = getApplicationFactoryManager(cl, true);
  return result;
}

origin: javax/javaee-web-api

FactoryFinderInstance getApplicationFactoryManager() {
  ClassLoader cl = getClassLoader();
  FactoryFinderInstance result = getApplicationFactoryManager(cl, true);
  return result;
}

origin: com.sun.faces/jsf-api

FactoryFinderInstance getApplicationFactoryManager(boolean create) {
  ClassLoader cl = getClassLoader();
  FactoryFinderInstance result = getApplicationFactoryManager(cl, create);
  return result;
}

origin: jboss/jboss-javaee-specs

FactoryFinderInstance getApplicationFactoryManager() {
  ClassLoader cl = getClassLoader();
  FactoryFinderInstance result = getApplicationFactoryManager(cl, true);
  return result;
}

origin: jboss/jboss-javaee-specs

FactoryFinderInstance getApplicationFactoryManager(boolean create) {
  ClassLoader cl = getClassLoader();
  FactoryFinderInstance result = getApplicationFactoryManager(cl, create);
  return result;
}

origin: javax.faces/javax.faces-api

FactoryFinderInstance getApplicationFactoryManager() {
  ClassLoader cl = getClassLoader();
  FactoryFinderInstance result = getApplicationFactoryManager(cl, true);
  return result;
}

origin: javax.faces/javax.faces-api

FactoryFinderInstance getApplicationFactoryManager(boolean create) {
  ClassLoader cl = getClassLoader();
  FactoryFinderInstance result = getApplicationFactoryManager(cl, create);
  return result;
}

origin: com.sun.faces/jsf-api

/**
 * <p>This method will store the argument
 * <code>factoryName/implName</code> mapping in such a way that
 * {@link #getFactory} will find this mapping when searching for a
 * match.</p>
 * <p/>
 * <p>This method has no effect if <code>getFactory()</code> has
 * already been called looking for a factory for this
 * <code>factoryName</code>.</p>
 * <p/>
 * <p>This method can be used by implementations to store a factory
 * mapping while parsing the Faces configuration file</p>
 *
 * @throws IllegalArgumentException if <code>factoryName</code> does not
 *                                  identify a standard JavaServer Faces factory name
 * @throws NullPointerException     if <code>factoryname</code>
 *                                  is null
 */
public static void setFactory(String factoryName,
               String implName) {
  FactoryFinderInstance manager =
     FACTORIES_CACHE.getApplicationFactoryManager();
  manager.addFactory(factoryName, implName);
}
origin: javax/javaee-web-api

/**
 * <p>This method will store the argument
 * <code>factoryName/implName</code> mapping in such a way that
 * {@link #getFactory} will find this mapping when searching for a
 * match.</p>
 *
 * <p>This method has no effect if <code>getFactory()</code> has
 * already been called looking for a factory for this
 * <code>factoryName</code>.</p>
 *
 * <p>This method can be used by implementations to store a factory
 * mapping while parsing the Faces configuration file</p>
 *
 * @throws IllegalArgumentException if <code>factoryName</code> does not
 *                                  identify a standard JavaServer Faces factory name
 * @throws NullPointerException     if <code>factoryname</code>
 *                                  is null
 *
 * @param factoryName the name to be used in a subsequent call to {@link #getFactory}.
 *
 * @param implName the fully qualified class name of the factory corresponding
 * to {@code factoryName}.
 */
public static void setFactory(String factoryName,
               String implName) {
  FactoryFinderInstance manager =
     FACTORIES_CACHE.getApplicationFactoryManager();
  manager.addFactory(factoryName, implName);
}
origin: javax.faces/javax.faces-api

/**
 * <p>This method will store the argument
 * <code>factoryName/implName</code> mapping in such a way that
 * {@link #getFactory} will find this mapping when searching for a
 * match.</p>
 *
 * <p>This method has no effect if <code>getFactory()</code> has
 * already been called looking for a factory for this
 * <code>factoryName</code>.</p>
 *
 * <p>This method can be used by implementations to store a factory
 * mapping while parsing the Faces configuration file</p>
 *
 * @throws IllegalArgumentException if <code>factoryName</code> does not
 *                                  identify a standard JavaServer Faces factory name
 * @throws NullPointerException     if <code>factoryname</code>
 *                                  is null
 *
 * @param factoryName the name to be used in a subsequent call to {@link #getFactory}.
 *
 * @param implName the fully qualified class name of the factory corresponding
 * to {@code factoryName}.
 */
public static void setFactory(String factoryName,
               String implName) {
  FactoryFinderInstance manager =
     FACTORIES_CACHE.getApplicationFactoryManager();
  manager.addFactory(factoryName, implName);
}
origin: jboss/jboss-javaee-specs

/**
 * <p>This method will store the argument
 * <code>factoryName/implName</code> mapping in such a way that
 * {@link #getFactory} will find this mapping when searching for a
 * match.</p>
 *
 * <p>This method has no effect if <code>getFactory()</code> has
 * already been called looking for a factory for this
 * <code>factoryName</code>.</p>
 *
 * <p>This method can be used by implementations to store a factory
 * mapping while parsing the Faces configuration file</p>
 *
 * @throws IllegalArgumentException if <code>factoryName</code> does not
 *                                  identify a standard JavaServer Faces factory name
 * @throws NullPointerException     if <code>factoryname</code>
 *                                  is null
 *
 * @param factoryName the name to be used in a subsequent call to {@link #getFactory}.
 *
 * @param implName the fully qualified class name of the factory corresponding
 * to {@code factoryName}.
 */
public static void setFactory(String factoryName,
               String implName) {
  FactoryFinderInstance manager =
     FACTORIES_CACHE.getApplicationFactoryManager();
  manager.addFactory(factoryName, implName);
}
origin: javax.faces/javax.faces-api

/**
 * <p><span class="changed_modified_2_0">Release</span> any
 * references to factory instances associated with the class loader
 * for the calling web application.  <span
 * class="changed_modified_2_0">This method must be called during of
 * web application shutdown.</span></p>
 *
 * @throws FacesException if the web application class loader
 *                        cannot be identified
 */
public static void releaseFactories() throws FacesException {
  synchronized(FACTORIES_CACHE) {
    if (!FACTORIES_CACHE.applicationMap.isEmpty()) {
      FactoryFinderInstance fm = FACTORIES_CACHE.getApplicationFactoryManager();
      fm.releaseFactories();
    }
    FACTORIES_CACHE.removeApplicationFactoryManager();
  }
}
origin: javax/javaee-web-api

/**
 * <p><span class="changed_modified_2_0">Release</span> any
 * references to factory instances associated with the class loader
 * for the calling web application.  <span
 * class="changed_modified_2_0">This method must be called during of
 * web application shutdown.</span></p>
 *
 * @throws FacesException if the web application class loader
 *                        cannot be identified
 */
public static void releaseFactories() throws FacesException {
  synchronized(FACTORIES_CACHE) {
    if (!FACTORIES_CACHE.applicationMap.isEmpty()) {
      FactoryFinderInstance fm = FACTORIES_CACHE.getApplicationFactoryManager();
      fm.releaseFactories();
    }
    FACTORIES_CACHE.removeApplicationFactoryManager();
  }
}
origin: com.sun.faces/jsf-api

/**
 * <p><span class="changed_modified_2_0">Release</span> any
 * references to factory instances associated with the class loader
 * for the calling web application.  <span
 * class="changed_modified_2_0">This method must be called during of
 * web application shutdown.</span></p>
 *
 * @throws FacesException if the web application class loader
 *                        cannot be identified
 */
public static void releaseFactories() throws FacesException {
  synchronized(FACTORIES_CACHE) {
    if (!FACTORIES_CACHE.applicationMap.isEmpty()) {
      FactoryFinderInstance fm = FACTORIES_CACHE.getApplicationFactoryManager();
      fm.releaseFactories();
    }
    FACTORIES_CACHE.removeApplicationFactoryManager();
  }
}
origin: jboss/jboss-javaee-specs

/**
 * <p><span class="changed_modified_2_0">Release</span> any
 * references to factory instances associated with the class loader
 * for the calling web application.  <span
 * class="changed_modified_2_0">This method must be called during of
 * web application shutdown.</span></p>
 *
 * @throws FacesException if the web application class loader
 *                        cannot be identified
 */
public static void releaseFactories() throws FacesException {
  synchronized(FACTORIES_CACHE) {
    if (!FACTORIES_CACHE.applicationMap.isEmpty()) {
      FactoryFinderInstance fm = FACTORIES_CACHE.getApplicationFactoryManager();
      fm.releaseFactories();
    }
    FACTORIES_CACHE.removeApplicationFactoryManager();
  }
}
origin: com.sun.faces/jsf-api

void removeApplicationFactoryManager() {
  ClassLoader cl = getClassLoader();
  FactoryFinderInstance fm = this.getApplicationFactoryManager(cl, false);
  if (null != fm) {
    fm.clearInjectionProvider();
  }
  FacesContext facesContext = servletContextFacesContextFactory.getFacesContextWithoutServletContextLookup();
  boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext);
  FactoryManagerCacheKey key = new FactoryManagerCacheKey(facesContext, cl, applicationMap);
  applicationMap.remove(key);
  if (isSpecialInitializationCase) {
    logNullFacesContext.set(false);
    logNonNullFacesContext.set(false);
  }
}
origin: javax/javaee-web-api

void removeApplicationFactoryManager() {
  ClassLoader cl = getClassLoader();
  FactoryFinderInstance fm = this.getApplicationFactoryManager(cl, false);
  if (null != fm) {
    fm.clearInjectionProvider();
  }
  FacesContext facesContext = servletContextFacesContextFactory.getFacesContextWithoutServletContextLookup();
  boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext);
  FactoryManagerCacheKey key = new FactoryManagerCacheKey(facesContext, cl, applicationMap);
  applicationMap.remove(key);
  if (isSpecialInitializationCase) {
    logNullFacesContext.set(false);
    logNonNullFacesContext.set(false);
  }
}
origin: jboss/jboss-javaee-specs

void removeApplicationFactoryManager() {
  ClassLoader cl = getClassLoader();
  FactoryFinderInstance fm = this.getApplicationFactoryManager(cl, false);
  if (null != fm) {
    fm.clearInjectionProvider();
  }
  FacesContext facesContext = servletContextFacesContextFactory.getFacesContextWithoutServletContextLookup();
  boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext);
  FactoryManagerCacheKey key = new FactoryManagerCacheKey(facesContext, cl, applicationMap);
  applicationMap.remove(key);
  if (isSpecialInitializationCase) {
    logNullFacesContext.set(false);
    logNonNullFacesContext.set(false);
  }
}
origin: javax.faces/javax.faces-api

void removeApplicationFactoryManager() {
  ClassLoader cl = getClassLoader();
  FactoryFinderInstance fm = this.getApplicationFactoryManager(cl, false);
  if (null != fm) {
    fm.clearInjectionProvider();
  }
  FacesContext facesContext = servletContextFacesContextFactory.getFacesContextWithoutServletContextLookup();
  boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext);
  FactoryManagerCacheKey key = new FactoryManagerCacheKey(facesContext, cl, applicationMap);
  applicationMap.remove(key);
  if (isSpecialInitializationCase) {
    logNullFacesContext.set(false);
    logNonNullFacesContext.set(false);
  }
}
javax.facesCurrentThreadToServletContextgetApplicationFactoryManager

Popular methods of CurrentThreadToServletContext

  • detectSpecialInitializationCase
    This method is used to detect the following special initialization case. IF no FactoryFinderInstance
  • getFallbackFactory
  • getServletContextForCurrentClassLoader
    Uses the FactoryManagerCacheKey system to find the ServletContext associated with the current ClassL
  • resetSpecialInitializationCaseFlags
  • getClassLoader
    Identify and return the class loader that is associated with the calling web application.
  • removeApplicationFactoryManager
  • getFactoryFinder
  • removeFactoryFinder

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Kernel (java.awt.image)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top PhpStorm plugins
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