congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • putExtra (Intent)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now