Tabnine Logo
HttpServletRequestBean.getBeanManager
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JTable (javax.swing)
  • Github Copilot alternatives
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