Package com.quickwebframework.view.jsp.support

Source Code of com.quickwebframework.view.jsp.support.Activator

package com.quickwebframework.view.jsp.support;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

import com.quickwebframework.servlet.ViewTypeServlet;
import com.quickwebframework.view.jsp.servlet.JspViewTypeServlet;

public class Activator implements BundleActivator {

  public final static String BUNDLE_NAME = "qwf-view-jsp";
  private static BundleContext context;
  private ViewTypeServlet viewTypeServlet;

  public static BundleContext getContext() {
    return context;
  }

  public void start(BundleContext bundleContext) throws Exception {
    Activator.context = bundleContext;
    viewTypeServlet = new JspViewTypeServlet();
    viewTypeServlet.register();
  }

  public void stop(BundleContext bundleContext) throws Exception {
    viewTypeServlet.unregister();
    Activator.context = null;
  }

}
TOP

Related Classes of com.quickwebframework.view.jsp.support.Activator

TOP
Copyright © 2018 www.massapi.com. 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.