Tabnine Logo
GwtDevHostedModeContainer.getWeldServletHandlerClass
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.jboss.weld.environment.gwtdev.GwtDevHostedModeContainer.getWeldServletHandlerClass (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.gwtdevGwtDevHostedModeContainergetWeldServletHandlerClass

Popular methods of GwtDevHostedModeContainer

    Popular in Java

    • Reading from database using SQL prepared statement
    • startActivity (Activity)
    • getExternalFilesDir (Context)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • FileOutputStream (java.io)
      An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
    • SocketTimeoutException (java.net)
      This exception is thrown when a timeout expired on a socket read or accept operation.
    • DateFormat (java.text)
      Formats or parses dates and times.This class provides factories for obtaining instances configured f
    • TreeMap (java.util)
      Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
    • Table (org.hibernate.mapping)
      A relational table
    • Option (scala)
    • Best IntelliJ plugins
    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