congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Option (scala)
  • Top plugins for WebStorm
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