1 // ========================================================================
2 // Copyright (c) 2009 Intalio, Inc.
3 // ------------------------------------------------------------------------
4 // All rights reserved. This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v1.0
6 // and Apache License v2.0 which accompanies this distribution.
7 // The Eclipse Public License is available at
8 // http://www.eclipse.org/legal/epl-v10.html
9 // The Apache License v2.0 is available at
10 // http://www.opensource.org/licenses/apache2.0.php
11 // You may elect to redistribute this code under either of these licenses.
12 // ========================================================================
13 package org.eclipse.jetty.osgi.boot.jsp;
14
15 import org.eclipse.jetty.osgi.boot.internal.webapp.WebBundleDeployerHelper;
16 import org.eclipse.jetty.osgi.boot.jasper.PluggableWebAppRegistrationCustomizerImpl;
17 import org.eclipse.jetty.osgi.boot.jasper.WebappRegistrationCustomizerImpl;
18 import org.osgi.framework.BundleActivator;
19 import org.osgi.framework.BundleContext;
20
21 /**
22 * Pseudo fragment activator.
23 * Called by the main org.eclipse.jetty.osgi.boot bundle.
24 * Please note: this is not a real BundleActivator. Simply something called back by
25 * the host bundle.
26 * <p>
27 * It must be placed in the org.eclipse.jetty.osgi.boot.jsp package:
28 * this is because org.eclipse.jetty.osgi.boot.jsp is the sympbolic-name
29 * of this fragment. From that name, the PackageadminTracker will call
30 * this class. IN a different package it won't be called.
31 * </p>
32 */
33 public class FragmentActivator implements BundleActivator
34 {
35 /**
36 *
37 */
38 public void start(BundleContext context) throws Exception {
39 System.setProperty("org.apache.jasper.compiler.disablejsr199", Boolean.TRUE.toString());
40 WebBundleDeployerHelper.JSP_REGISTRATION_HELPERS.add(new WebappRegistrationCustomizerImpl());
41 WebBundleDeployerHelper.JSP_REGISTRATION_HELPERS.add(new PluggableWebAppRegistrationCustomizerImpl());
42 }
43
44 /**
45 *
46 */
47 public void stop(BundleContext context) throws Exception {
48
49 }
50 }