congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
FactoryFinderInstance.getInjectionProvider
Code IndexAdd Tabnine to your IDE (free)

How to use
getInjectionProvider
method
in
javax.faces.FactoryFinderInstance

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

origin: javax/javaee-web-api

void releaseFactories() {
  InjectionProvider provider = getInjectionProvider();
  if (null != provider) {
    lock.writeLock().lock();
origin: com.sun.faces/jsf-api

void releaseFactories() {
  InjectionProvider provider = getInjectionProvider();
  if (null != provider) {
    lock.writeLock().lock();
origin: eclipse-ee4j/mojarra

void releaseFactories() {
  InjectionProvider provider = getInjectionProvider();
  
  if (provider != null) {
    lock.writeLock().lock();
    try {
      for (Entry<String, Object> entry : factories.entrySet()) {
        Object curFactory = entry.getValue();
        
        // If the current entry is not the injectionProvider itself
        // and the current entry has a non-null value
        // and the value is not a string...
        if (!INJECTION_PROVIDER_KEY.equals(entry.getKey()) && curFactory != null && !(curFactory instanceof String)) {
          try {
            provider.invokePreDestroy(curFactory);
          } catch (Exception ex) {
            logPreDestroyFail(entry.getValue(), ex);
          }
        }
      }
    } finally {
      factories.clear();
      lock.writeLock().unlock();
    }
  } else {
    LOGGER.log(SEVERE,
      "Unable to call @PreDestroy annotated methods because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?");
  }
}
origin: eclipse-ee4j/mojarra

void releaseFactories() {
  InjectionProvider provider = getInjectionProvider();
  
  if (provider != null) {
    lock.writeLock().lock();
    try {
      for (Entry<String, Object> entry : factories.entrySet()) {
        Object curFactory = entry.getValue();
        
        // If the current entry is not the injectionProvider itself
        // and the current entry has a non-null value
        // and the value is not a string...
        if (!INJECTION_PROVIDER_KEY.equals(entry.getKey()) && curFactory != null && !(curFactory instanceof String)) {
          try {
            provider.invokePreDestroy(curFactory);
          } catch (Exception ex) {
            logPreDestroyFail(entry.getValue(), ex);
          }
        }
      }
    } finally {
      factories.clear();
      lock.writeLock().unlock();
    }
  } else {
    LOGGER.log(SEVERE,
      "Unable to call @PreDestroy annotated methods because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?");
  }
}
origin: javax.faces/javax.faces-api

void releaseFactories() {
  InjectionProvider provider = getInjectionProvider();
  if (null != provider) {
    lock.writeLock().lock();
origin: org.glassfish/javax.faces

void releaseFactories() {
  InjectionProvider provider = getInjectionProvider();
  
  if (provider != null) {
    lock.writeLock().lock();
    try {
      for (Entry<String, Object> entry : factories.entrySet()) {
        Object curFactory = entry.getValue();
        
        // If the current entry is not the injectionProvider itself
        // and the current entry has a non-null value
        // and the value is not a string...
        if (!INJECTION_PROVIDER_KEY.equals(entry.getKey()) && curFactory != null && !(curFactory instanceof String)) {
          try {
            provider.invokePreDestroy(curFactory);
          } catch (Exception ex) {
            logPreDestroyFail(entry.getValue(), ex);
          }
        }
      }
    } finally {
      factories.clear();
      lock.writeLock().unlock();
    }
  } else {
    LOGGER.log(SEVERE,
      "Unable to call @PreDestroy annotated methods because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?");
  }
}
origin: org.glassfish/jakarta.faces

void releaseFactories() {
  InjectionProvider provider = getInjectionProvider();
  
  if (provider != null) {
    lock.writeLock().lock();
    try {
      for (Entry<String, Object> entry : factories.entrySet()) {
        Object curFactory = entry.getValue();
        
        // If the current entry is not the injectionProvider itself
        // and the current entry has a non-null value
        // and the value is not a string...
        if (!INJECTION_PROVIDER_KEY.equals(entry.getKey()) && curFactory != null && !(curFactory instanceof String)) {
          try {
            provider.invokePreDestroy(curFactory);
          } catch (Exception ex) {
            logPreDestroyFail(entry.getValue(), ex);
          }
        }
      }
    } finally {
      factories.clear();
      lock.writeLock().unlock();
    }
  } else {
    LOGGER.log(SEVERE,
      "Unable to call @PreDestroy annotated methods because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?");
  }
}
origin: jboss/jboss-javaee-specs

void releaseFactories() {
  InjectionProvider provider = getInjectionProvider();
  if (null != provider) {
    lock.writeLock().lock();
origin: org.glassfish/javax.faces

private void injectImplementation(String implementationName, Object implementation) {
  if (implementation != null) {
    InjectionProvider provider = getInjectionProvider();
    if (provider != null) {
      try {
        provider.inject(implementation);
        provider.invokePostConstruct(implementation);
      } catch (Exception e) {
        throw new FacesException(implementationName, e);
      }
    } else {
      LOGGER.log(SEVERE,
        "Unable to inject {0} because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?", implementation);
    }
  }
}

origin: eclipse-ee4j/mojarra

private void injectImplementation(String implementationName, Object implementation) {
  if (implementation != null) {
    InjectionProvider provider = getInjectionProvider();
    if (provider != null) {
      try {
        provider.inject(implementation);
        provider.invokePostConstruct(implementation);
      } catch (Exception e) {
        throw new FacesException(implementationName, e);
      }
    } else {
      LOGGER.log(SEVERE,
        "Unable to inject {0} because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?", implementation);
    }
  }
}

origin: org.glassfish/jakarta.faces

private void injectImplementation(String implementationName, Object implementation) {
  if (implementation != null) {
    InjectionProvider provider = getInjectionProvider();
    if (provider != null) {
      try {
        provider.inject(implementation);
        provider.invokePostConstruct(implementation);
      } catch (Exception e) {
        throw new FacesException(implementationName, e);
      }
    } else {
      LOGGER.log(SEVERE,
        "Unable to inject {0} because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?", implementation);
    }
  }
}

origin: eclipse-ee4j/mojarra

private void injectImplementation(String implementationName, Object implementation) {
  if (implementation != null) {
    InjectionProvider provider = getInjectionProvider();
    if (provider != null) {
      try {
        provider.inject(implementation);
        provider.invokePostConstruct(implementation);
      } catch (Exception e) {
        throw new FacesException(implementationName, e);
      }
    } else {
      LOGGER.log(SEVERE,
        "Unable to inject {0} because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?", implementation);
    }
  }
}

origin: javax/javaee-web-api

InjectionProvider provider = getInjectionProvider();
if (null != provider) {
  try {
origin: com.sun.faces/jsf-api

InjectionProvider provider = getInjectionProvider();
if (null != provider) {
  try {
origin: javax.faces/javax.faces-api

InjectionProvider provider = getInjectionProvider();
if (null != provider) {
  try {
origin: jboss/jboss-javaee-specs

InjectionProvider provider = getInjectionProvider();
if (null != provider) {
  try {
javax.facesFactoryFinderInstancegetInjectionProvider

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
  • getImplementationInstance
    Load and return an instance of the specified implementation class using the following algorithm.
  • releaseFactories
  • validateFactoryName
  • getClassLoader
  • validateFactoryName,
  • getClassLoader,
  • injectImplementation,
  • logNoFactory,
  • logPreDestroyFail,
  • notNullFactory,
  • readLineFromStream

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 25 Plugins for Webstorm
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