congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • 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