congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CurrentThreadToServletContext.getFactoryFinder
Code IndexAdd Tabnine 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)

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

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Best IntelliJ 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