congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GwtDevHostedModeContainer
Code IndexAdd Tabnine to your IDE (free)

How to use
GwtDevHostedModeContainer
in
org.jboss.weld.environment.gwtdev

Best Java code snippets using org.jboss.weld.environment.gwtdev.GwtDevHostedModeContainer (Showing top 3 results out of 315)

origin: weld/core

  public void initialize(ContainerContext context) {
    // Try pushing a Jetty Injector into the servlet context
    try {
      context.getServletContext().setAttribute(INJECTOR_ATTRIBUTE_NAME, new JettyWeldInjector(context.getManager()));
      JettyLogger.LOG.gwtHostedModeDetected();

      Class<?> decoratorClass = getWeldServletHandlerClass();
      Method processMethod = decoratorClass.getMethod("process", ServletContext.class);
      processMethod.invoke(null, context.getServletContext());
    } catch (Exception e) {
      JettyLogger.LOG.unableToCreateJettyWeldInjector(e);
    }
  }
}
origin: weld/core

  public void initialize(ContainerContext context) {
    // Try pushing a Jetty Injector into the servlet context
    try {
      context.getServletContext().setAttribute(INJECTOR_ATTRIBUTE_NAME, new JettyWeldInjector(context.getManager()));
      JettyLogger.LOG.gwtHostedModeDetected();

      Class<?> decoratorClass = getWeldServletHandlerClass();
      Method processMethod = decoratorClass.getMethod("process", ServletContext.class);
      processMethod.invoke(null, context.getServletContext());
    } catch (Exception e) {
      JettyLogger.LOG.unableToCreateJettyWeldInjector(e);
    }
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

  public void initialize(ContainerContext context) {
    // Try pushing a Jetty Injector into the servlet context
    try {
      context.getServletContext().setAttribute(INJECTOR_ATTRIBUTE_NAME, new JettyWeldInjector(context.getManager()));
      JettyLogger.LOG.gwtHostedModeDetected();

      Class<?> decoratorClass = getWeldServletHandlerClass();
      Method processMethod = decoratorClass.getMethod("process", ServletContext.class);
      processMethod.invoke(null, context.getServletContext());
    } catch (Exception e) {
      JettyLogger.LOG.unableToCreateJettyWeldInjector(e);
    }
  }
}
org.jboss.weld.environment.gwtdevGwtDevHostedModeContainer

Most used methods

  • getWeldServletHandlerClass

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • CodeWhisperer 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