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

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Path (java.nio.file)
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JTextField (javax.swing)
  • Top plugins for Android Studio
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