congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
FactoryFinderInstance.logPreDestroyFail
Code IndexAdd Tabnine to your IDE (free)

How to use
logPreDestroyFail
method
in
javax.faces.FactoryFinderInstance

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

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: 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?");
  }
}
javax.facesFactoryFinderInstancelogPreDestroyFail

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.
  • getInjectionProvider
  • releaseFactories
  • validateFactoryName
  • releaseFactories,
  • validateFactoryName,
  • getClassLoader,
  • injectImplementation,
  • logNoFactory,
  • notNullFactory,
  • readLineFromStream

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JFileChooser (javax.swing)
  • JOptionPane (javax.swing)
  • 14 Best Plugins for Eclipse
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