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

    BasicConfiguration config = new BasicConfiguration(context);
    WebAppBootstrap bootstrap = new WebAppBootstrapFactory().create(config);
    bootstrap.configure(container);

    registerCustomComponents(container);
    container.start(context);
  }
Ejemplo n.º 2
0
 public void stop() {
   container.stop();
 }