Package br.com.caelum.vraptor.config

Examples of br.com.caelum.vraptor.config.BasicConfiguration


    }
  }

  public void init(FilterConfig cfg) throws ServletException {
    servletContext = cfg.getServletContext();
    BasicConfiguration config = new BasicConfiguration(servletContext);
    init(config.getProvider());
    logger.info("VRaptor {} successfuly initialized", VERSION);
  }
View Full Code Here


    response = mock(MutableResponse.class);

    FilterChain chain = mock(FilterChain.class);
    VRaptorRequestHolder.setRequestForCurrentThread(new RequestInfo(servletContext, chain, request, response));
    RequestContextHolder.setRequestAttributes(new ServletRequestAttributes(request));
    BasicConfiguration config = new BasicConfiguration(servletContext);
    container = new SpringBasedContainer(new DefaultSpringLocator().getApplicationContext(servletContext));
    new WebAppBootstrapFactory().create(config).configure(container);
    container.start(servletContext);
  }
View Full Code Here


  private final EncodingHandler handler;

  public EncodingHandlerFactory(ServletContext context) {
    String encoding = new BasicConfiguration(context).getEncoding();
    this.handler = encoding == null? new NullEncodingHandler() : new WebXmlEncodingHandler(encoding);
  }
View Full Code Here

      ComponentRegistry componentRegistry = getComponentRegistry();
      registerBundledComponents(componentRegistry);

      this.picoContainer.addComponent(context);

      BasicConfiguration config = new BasicConfiguration(context);
      Scanner scanner = new ReflectionsScanner(config);

      this.picoContainer.addComponent(scanner);

      registerAnnotatedComponents(scanner, componentRegistry);
View Full Code Here

  /**
   * You can override this method to start some components, remember to call super before.
   */
  public void start(ServletContext context) {
    BasicConfiguration config = new BasicConfiguration(context);
    container = new SpringBasedContainer(getParentApplicationContext(context), config);

    registerCustomComponents(container);
    container.start(context);
  }
View Full Code Here

    }
  }

  public void init(FilterConfig cfg) throws ServletException {
    servletContext = cfg.getServletContext();
    BasicConfiguration config = new BasicConfiguration(servletContext);
    init(config.getProvider(), new DefaultStaticContentHandler(servletContext));
    logger.info("VRaptor 3.1.2 successfuly initialized");
  }
View Full Code Here

    public void stop() {
        container.stop();
    }

    public void start(ServletContext context) {
        BasicConfiguration config = new BasicConfiguration(context);
        container = new SpringBasedContainer(getParentApplicationContext(context), config);

        registerCustomComponents(container);
        container.start(context);
    }
View Full Code Here

    }
  }

  public void init(FilterConfig cfg) throws ServletException {
    servletContext = cfg.getServletContext();
    BasicConfiguration config = new BasicConfiguration(servletContext);
    init(config.getProvider(), new DefaultStaticContentHandler(servletContext));
    logger.info("VRaptor 3.1.1-SNAP successfuly initialized");
  }
View Full Code Here


  private final EncodingHandler handler;

  public EncodingHandlerFactory(ServletContext context) {
    String encoding = new BasicConfiguration(context).getEncoding();
    this.handler = encoding == null? new NullEncodingHandler() : new WebXmlEncodingHandler(encoding);
  }
View Full Code Here

    }
  }

  public void init(FilterConfig cfg) throws ServletException {
    servletContext = cfg.getServletContext();
    BasicConfiguration config = new BasicConfiguration(servletContext);
    init(config.getProvider(), new DefaultStaticContentHandler(servletContext));
    logger.info("VRaptor 3.3.1 successfuly initialized");
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.config.BasicConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.