Codota Logo
CurrentThreadToServletContext.getFactoryFinder
Code IndexAdd Codota to your IDE (free)

How to use
getFactoryFinder
method
in
javax.faces.CurrentThreadToServletContext

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.glassfish/javax.faces

FactoryFinderInstance getFactoryFinder() {
  return getFactoryFinder(getContextClassLoader2(), true);
}
origin: org.glassfish/javax.faces

FactoryFinderInstance getFactoryFinder(boolean create) {
  return getFactoryFinder(getContextClassLoader2(), create);
}
origin: eclipse-ee4j/mojarra

FactoryFinderInstance getFactoryFinder() {
  return getFactoryFinder(getContextClassLoader2(), true);
}
origin: eclipse-ee4j/mojarra

FactoryFinderInstance getFactoryFinder() {
  return getFactoryFinder(getContextClassLoader2(), true);
}
origin: org.glassfish/jakarta.faces

FactoryFinderInstance getFactoryFinder(boolean create) {
  return getFactoryFinder(getContextClassLoader2(), create);
}
origin: eclipse-ee4j/mojarra

FactoryFinderInstance getFactoryFinder(boolean create) {
  return getFactoryFinder(getContextClassLoader2(), create);
}
origin: org.glassfish/jakarta.faces

FactoryFinderInstance getFactoryFinder() {
  return getFactoryFinder(getContextClassLoader2(), true);
}
origin: eclipse-ee4j/mojarra

FactoryFinderInstance getFactoryFinder(boolean create) {
  return getFactoryFinder(getContextClassLoader2(), create);
}
origin: eclipse-ee4j/mojarra

/**
 * <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) {
  FACTORIES_CACHE.getFactoryFinder().addFactory(factoryName, implName);
}
origin: org.glassfish/javax.faces

/**
 * <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) {
  FACTORIES_CACHE.getFactoryFinder().addFactory(factoryName, implName);
}
origin: eclipse-ee4j/mojarra

/**
 * <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) {
  FACTORIES_CACHE.getFactoryFinder().addFactory(factoryName, implName);
}
origin: org.glassfish/jakarta.faces

/**
 * <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) {
  FACTORIES_CACHE.getFactoryFinder().addFactory(factoryName, implName);
}
origin: org.glassfish/javax.faces

/**
 * <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.factoryFinderMap.isEmpty()) {
      FACTORIES_CACHE.getFactoryFinder().releaseFactories();
    }
    FACTORIES_CACHE.removeFactoryFinder();
  }
}
origin: org.glassfish/jakarta.faces

/**
 * <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.factoryFinderMap.isEmpty()) {
      FACTORIES_CACHE.getFactoryFinder().releaseFactories();
    }
    FACTORIES_CACHE.removeFactoryFinder();
  }
}
origin: eclipse-ee4j/mojarra

/**
 * <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.factoryFinderMap.isEmpty()) {
      FACTORIES_CACHE.getFactoryFinder().releaseFactories();
    }
    FACTORIES_CACHE.removeFactoryFinder();
  }
}
origin: eclipse-ee4j/mojarra

/**
 * <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.factoryFinderMap.isEmpty()) {
      FACTORIES_CACHE.getFactoryFinder().releaseFactories();
    }
    FACTORIES_CACHE.removeFactoryFinder();
  }
}
origin: org.glassfish/javax.faces

void removeFactoryFinder() {
  ClassLoader classLoader = getContextClassLoader2();
  FactoryFinderInstance factoryFinder = getFactoryFinder(classLoader, false);
  if (factoryFinder != null) {
    factoryFinder.clearInjectionProvider();
  }
  
  FacesContext facesContext = servletContextFacesContextFactory.getFacesContextWithoutServletContextLookup();
  boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext);
  
  factoryFinderMap.remove(new FactoryFinderCacheKey(facesContext, classLoader, factoryFinderMap));
    if (isSpecialInitializationCase) {
    resetSpecialInitializationCaseFlags();
  }
}
origin: org.glassfish/jakarta.faces

void removeFactoryFinder() {
  ClassLoader classLoader = getContextClassLoader2();
  FactoryFinderInstance factoryFinder = getFactoryFinder(classLoader, false);
  if (factoryFinder != null) {
    factoryFinder.clearInjectionProvider();
  }
  
  FacesContext facesContext = servletContextFacesContextFactory.getFacesContextWithoutServletContextLookup();
  boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext);
  
  factoryFinderMap.remove(new FactoryFinderCacheKey(facesContext, classLoader, factoryFinderMap));
    if (isSpecialInitializationCase) {
    resetSpecialInitializationCaseFlags();
  }
}
origin: eclipse-ee4j/mojarra

void removeFactoryFinder() {
  ClassLoader classLoader = getContextClassLoader2();
  FactoryFinderInstance factoryFinder = getFactoryFinder(classLoader, false);
  if (factoryFinder != null) {
    factoryFinder.clearInjectionProvider();
  }
  
  FacesContext facesContext = servletContextFacesContextFactory.getFacesContextWithoutServletContextLookup();
  boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext);
  
  factoryFinderMap.remove(new FactoryFinderCacheKey(facesContext, classLoader, factoryFinderMap));
    if (isSpecialInitializationCase) {
    resetSpecialInitializationCaseFlags();
  }
}
origin: eclipse-ee4j/mojarra

void removeFactoryFinder() {
  ClassLoader classLoader = getContextClassLoader2();
  FactoryFinderInstance factoryFinder = getFactoryFinder(classLoader, false);
  if (factoryFinder != null) {
    factoryFinder.clearInjectionProvider();
  }
  
  FacesContext facesContext = servletContextFacesContextFactory.getFacesContextWithoutServletContextLookup();
  boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext);
  
  factoryFinderMap.remove(new FactoryFinderCacheKey(facesContext, classLoader, factoryFinderMap));
    if (isSpecialInitializationCase) {
    resetSpecialInitializationCaseFlags();
  }
}
javax.facesCurrentThreadToServletContextgetFactoryFinder

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
  • getApplicationFactoryManager
  • getClassLoader
    Identify and return the class loader that is associated with the calling web application.
  • removeApplicationFactoryManager
  • removeFactoryFinder

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ImageIO (javax.imageio)
  • Notification (javax.management)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now