congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ContextualInstanceStrategy$DefaultContextualInstanceStrategy.getIfExists
Code IndexAdd Tabnine to your IDE (free)

How to use
getIfExists
method
in
org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy

Best Java code snippets using org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.getIfExists (Showing top 12 results out of 315)

origin: weld/core

@Override
T getIfExists(Bean<T> bean, BeanManagerImpl manager) {
  T cached = cache.get();
  if (cached != null) {
    return cached;
  }
  cached = super.getIfExists(bean, manager);
  if (cached != null && RequestScopedCache.addItemIfActive(cache)) {
    cache.set(cached);
  }
  return cached;
}
origin: org.jboss.weld.se/weld-se

@Override
T getIfExists(Bean<T> bean, BeanManagerImpl manager) {
  T cached = cache.get();
  if (cached != null) {
    return cached;
  }
  cached = super.getIfExists(bean, manager);
  if (cached != null && RequestScopedCache.addItemIfActive(cache)) {
    cache.set(cached);
  }
  return cached;
}
origin: weld/core

@Override
T getIfExists(Bean<T> bean, BeanManagerImpl manager) {
  T cached = cache.get();
  if (cached != null) {
    return cached;
  }
  cached = super.getIfExists(bean, manager);
  if (cached != null && RequestScopedCache.addItemIfActive(cache)) {
    cache.set(cached);
  }
  return cached;
}
origin: org.jboss.weld.se/weld-se-shaded

@Override
T getIfExists(Bean<T> bean, BeanManagerImpl manager) {
  T instance = value;
  if (instance != null) {
    return instance;
  }
  synchronized (this) {
    if (value == null) {
      instance = super.getIfExists(bean, manager);
      if (instance != null) {
        this.value = instance;
      }
    }
    return instance;
  }
}
origin: weld/core

@Override
T getIfExists(Bean<T> bean, BeanManagerImpl manager) {
  T instance = value;
  if (instance != null) {
    return instance;
  }
  synchronized (this) {
    if (value == null) {
      instance = super.getIfExists(bean, manager);
      if (instance != null) {
        this.value = instance;
      }
    }
    return instance;
  }
}
origin: org.jboss.weld.se/weld-se

@Override
T getIfExists(Bean<T> bean, BeanManagerImpl manager) {
  T instance = value;
  if (instance != null) {
    return instance;
  }
  synchronized (this) {
    if (value == null) {
      instance = super.getIfExists(bean, manager);
      if (instance != null) {
        this.value = instance;
      }
    }
    return instance;
  }
}
origin: weld/core

@Override
T getIfExists(Bean<T> bean, BeanManagerImpl manager) {
  T instance = value;
  if (instance != null) {
    return instance;
  }
  synchronized (this) {
    if (value == null) {
      instance = super.getIfExists(bean, manager);
      if (instance != null) {
        this.value = instance;
      }
    }
    return instance;
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
T getIfExists(Bean<T> bean, BeanManagerImpl manager) {
  T instance = value;
  if (instance != null) {
    return instance;
  }
  synchronized (this) {
    if (value == null) {
      instance = super.getIfExists(bean, manager);
      if (instance != null) {
        this.value = instance;
      }
    }
    return instance;
  }
}
origin: weld/core

@Override
T getIfExists(Bean<T> bean, BeanManagerImpl manager) {
  T instance = value;
  if (instance != null) {
    return instance;
  }
  synchronized (this) {
    if (value == null) {
      instance = super.getIfExists(bean, manager);
      if (instance != null) {
        this.value = instance;
      }
    }
    return instance;
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
T getIfExists(Bean<T> bean, BeanManagerImpl manager) {
  T cached = cache.get();
  if (cached != null) {
    return cached;
  }
  cached = super.getIfExists(bean, manager);
  if (cached != null && RequestScopedCache.addItemIfActive(cache)) {
    cache.set(cached);
  }
  return cached;
}
origin: org.jboss.weld.se/weld-se-shaded

@Override
T getIfExists(Bean<T> bean, BeanManagerImpl manager) {
  T cached = cache.get();
  if (cached != null) {
    return cached;
  }
  cached = super.getIfExists(bean, manager);
  if (cached != null && RequestScopedCache.addItemIfActive(cache)) {
    cache.set(cached);
  }
  return cached;
}
origin: weld/core

@Override
T getIfExists(Bean<T> bean, BeanManagerImpl manager) {
  T cached = cache.get();
  if (cached != null) {
    return cached;
  }
  cached = super.getIfExists(bean, manager);
  if (cached != null && RequestScopedCache.addItemIfActive(cache)) {
    cache.set(cached);
  }
  return cached;
}
org.jboss.weld.beanContextualInstanceStrategy$DefaultContextualInstanceStrategygetIfExists

Popular methods of ContextualInstanceStrategy$DefaultContextualInstanceStrategy

  • get

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • JList (javax.swing)
  • JPanel (javax.swing)
  • JTextField (javax.swing)
  • Top 12 Jupyter Notebook Extensions
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