01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: * $Header:$
18: */
19: package org.apache.beehive.netui.pageflow;
20:
21: import javax.servlet.ServletException;
22:
23: import org.apache.beehive.netui.util.logging.Logger;
24:
25: /**
26: * ActionServlet that dynamically registers modules based on naming/location conventions for Struts
27: * configuration files that are generated by the Page Flow compiler. These files are located in
28: * /WEB-INF/classes/_pageflow, and are named struts-config-<i>module-name</i>.xml.
29: * The user may specify additional ModuleConfigLocator classes in web.xml, using the
30: * "moduleConfigLocators" init-parameter; this allows the user to define other patterns for
31: * auto-registered Struts modules.
32: *
33: * @deprecated Use {@link PageFlowActionServlet} instead.
34: */
35: public class DynamicSubappActionServlet extends PageFlowActionServlet {
36: private static final Logger _log = Logger
37: .getInstance(DynamicSubappActionServlet.class);
38:
39: public void init() throws ServletException {
40: super .init();
41:
42: if (_log.isWarnEnabled()) {
43: _log.warn(DynamicSubappActionServlet.class.getName()
44: + " is registered as the action Servlet. "
45: + "This class is deprecated; use "
46: + PageFlowActionServlet.class.getName()
47: + " instead.");
48: }
49: }
50: }
|