Codota Logo
FactoryFinderInstance.getImplementationInstance
Code IndexAdd Codota to your IDE (free)

How to use
getImplementationInstance
method
in
javax.faces.FactoryFinderInstance

Best Java code snippets using javax.faces.FactoryFinderInstance.getImplementationInstance (Showing top 8 results out of 315)

  • Common ways to obtain FactoryFinderInstance
private void myMethod () {
FactoryFinderInstance f =
  • Codota Iconnew FactoryFinderInstance()
  • Codota IconCurrentThreadToServletContext currentThreadToServletContext;currentThreadToServletContext.getApplicationFactoryManager()
  • Codota IconConcurrentMap concurrentMap;Object object;concurrentMap.get(object)
  • Smart code suggestions by Codota
}
origin: javax.faces/javax.faces-api

ClassLoader cl = getClassLoader();
Object factory = getImplementationInstance(cl, factoryName, (List) factoryOrList);
if (factory == null) {
  ResourceBundle rb = LOGGER.getResourceBundle();
origin: javax/javaee-web-api

ClassLoader cl = getClassLoader();
Object factory = getImplementationInstance(cl, factoryName, (List) factoryOrList);
if (factory == null) {
  ResourceBundle rb = LOGGER.getResourceBundle();
origin: com.sun.faces/jsf-api

ClassLoader cl = getClassLoader();
Object factory = getImplementationInstance(cl, factoryName, (List) factoryOrList);
if (factory == null) {
  ResourceBundle rb = LOGGER.getResourceBundle();
origin: eclipse-ee4j/mojarra

Object factory = getImplementationInstance(getContextClassLoader2(), factoryName, (List<String>) factoryOrList);
origin: jboss/jboss-javaee-specs

ClassLoader cl = getClassLoader();
Object factory = getImplementationInstance(cl, factoryName, (List) factoryOrList);
if (factory == null) {
  ResourceBundle rb = LOGGER.getResourceBundle();
origin: eclipse-ee4j/mojarra

Object factory = getImplementationInstance(getContextClassLoader2(), factoryName, (List<String>) factoryOrList);
origin: org.glassfish/javax.faces

Object factory = getImplementationInstance(getContextClassLoader2(), factoryName, (List<String>) factoryOrList);
origin: org.glassfish/jakarta.faces

Object factory = getImplementationInstance(getContextClassLoader2(), factoryName, (List<String>) factoryOrList);
javax.facesFactoryFinderInstancegetImplementationInstance

Javadoc

Load and return an instance of the specified implementation class using the following algorithm.

  1. If the argument implementations list has more than one element, or exactly one element, interpret the last element in the list to be the fully qualified class name of a class implementing factoryName. Instantiate that class and save it for return. If the implementations list has only one element, skip this step.

  2. Look for a resource called /META-INF/services/<factoryName>. If found, interpret it as a properties file, and read out the first entry. Interpret the first entry as a fully qualify class name of a class that implements factoryName. If we have an instantiated factory from the previous step and the implementing class has a one arg constructor of the type for factoryName, instantiate it, passing the instantiated factory from the previous step. If there is no one arg constructor, just instantiate the zero arg constructor. Save the newly instantiated factory for return, replacing the instantiated factory from the previous step.

  3. Treat each remaining element in the implementations list as a fully qualified class name of a class implementing factoryName. If the currentKeyrent element has a one arg constructor of the type for factoryName, instantiate it, passing the instantiated factory from the previous or step iteration. If there is no one arg constructor, just instantiate the zero arg constructor, replacing the instantiated factory from the previous step or iteration.

  4. Return the saved factory

Popular methods of FactoryFinderInstance

  • <init>
  • addFactory
  • clearInjectionProvider
  • copyInjectionProviderFromFacesContext
  • getFactory
  • getFactoryClass
  • getImplGivenPreviousImpl
    Implement the decorator pattern for the factory implementation. If previousImpl is non-null and
  • getImplNameFromServices
    Perform the logic to get the implementation class for the second step of FactoryFinder#getImplement
  • getInjectionProvider
  • releaseFactories
  • validateFactoryName
  • getClassLoader
  • validateFactoryName,
  • getClassLoader,
  • injectImplementation,
  • logNoFactory,
  • logPreDestroyFail,
  • notNullFactory,
  • readLineFromStream

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
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