Codota Logo
HttpServletRequestBean.getBeanManager
Code IndexAdd Codota to your IDE (free)

How to use
getBeanManager
method
in
org.jboss.weld.module.web.HttpServletRequestBean

Best Java code snippets using org.jboss.weld.module.web.HttpServletRequestBean.getBeanManager (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: weld/core

@Override
protected HttpServletRequest newInstance(InjectionPoint ip, CreationalContext<HttpServletRequest> creationalContext) {
  try {
    Context context = getBeanManager().getContext(RequestScoped.class);
    if (context instanceof HttpRequestContextImpl) {
      return Reflections.<HttpRequestContextImpl> cast(context).getHttpServletRequest();
    }
    throw ServletLogger.LOG.cannotInjectObjectOutsideOfServletRequest(HttpServletRequest.class.getSimpleName(), null);
  } catch (ContextNotActiveException e) {
    throw ServletLogger.LOG.cannotInjectObjectOutsideOfServletRequest(HttpServletRequest.class.getSimpleName(), e);
  }
}
origin: weld/core

@Override
protected HttpServletRequest newInstance(InjectionPoint ip, CreationalContext<HttpServletRequest> creationalContext) {
  try {
    Context context = getBeanManager().getContext(RequestScoped.class);
    if (context instanceof HttpRequestContextImpl) {
      return Reflections.<HttpRequestContextImpl> cast(context).getHttpServletRequest();
    }
    throw ServletLogger.LOG.cannotInjectObjectOutsideOfServletRequest(HttpServletRequest.class.getSimpleName(), null);
  } catch (ContextNotActiveException e) {
    throw ServletLogger.LOG.cannotInjectObjectOutsideOfServletRequest(HttpServletRequest.class.getSimpleName(), e);
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
protected HttpServletRequest newInstance(InjectionPoint ip, CreationalContext<HttpServletRequest> creationalContext) {
  try {
    Context context = getBeanManager().getContext(RequestScoped.class);
    if (context instanceof HttpRequestContextImpl) {
      return Reflections.<HttpRequestContextImpl> cast(context).getHttpServletRequest();
    }
    throw ServletLogger.LOG.cannotInjectObjectOutsideOfServletRequest(HttpServletRequest.class.getSimpleName(), null);
  } catch (ContextNotActiveException e) {
    throw ServletLogger.LOG.cannotInjectObjectOutsideOfServletRequest(HttpServletRequest.class.getSimpleName(), e);
  }
}
org.jboss.weld.module.webHttpServletRequestBeangetBeanManager

Popular methods of HttpServletRequestBean

  • <init>

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JFrame (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now