01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19:
20: package org.apache.geronimo.jetty6;
21:
22: import java.util.Map;
23: import java.util.Set;
24:
25: import org.apache.geronimo.gbean.GBeanInfo;
26: import org.apache.geronimo.gbean.GBeanInfoBuilder;
27: import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
28:
29: /**
30: * @version $Rev: 556217 $ $Date: 2007-07-13 20:39:06 -0700 (Fri, 13 Jul 2007) $
31: */
32: public class JettyJspServletHolder extends JettyServletHolder {
33:
34: public JettyJspServletHolder() {
35: }
36:
37: public JettyJspServletHolder(String objectName, String servletName,
38: String servletClassName, String jspFile, Map initParams,
39: Integer loadOnStartup, Set servletMappings,
40: String runAsRole, JettyServletRegistration context)
41: throws Exception {
42: super (objectName, servletName, servletClassName, jspFile,
43: initParams, loadOnStartup, servletMappings, runAsRole,
44: context);
45: }
46:
47: public static final GBeanInfo GBEAN_INFO;
48:
49: static {
50: GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(
51: JettyJspServletHolder.class,
52: JettyServletHolder.GBEAN_INFO,
53: NameFactory.SERVLET_TEMPLATE);
54:
55: GBEAN_INFO = infoBuilder.getBeanInfo();
56: }
57:
58: public static GBeanInfo getGBeanInfo() {
59: return GBEAN_INFO;
60: }
61:
62: }
|