Tabnine Logo
FactoryFinderInstance.getImplementationInstance
Code IndexAdd Tabnine 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)

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

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Option (scala)
  • Top 17 Plugins for Android Studio
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