View Javadoc

1   /*
2    * $Id: CustomI18nFactorySet.java 421151 2006-07-12 06:07:14Z wsmoak $
3    *
4    * Copyright 2005 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  
20  package org.apache.struts.tiles;
21  
22  import java.util.Map;
23  import java.util.Locale;
24  import javax.servlet.ServletContext;
25  import javax.servlet.ServletRequest;
26  import org.apache.struts.tiles.xmlDefinition.I18nFactorySet;
27  /***
28   * <p>Test I18nFactorySet.</p>
29   *
30   * @version $Rev: 421151 $ $Date: 2006-07-11 23:07:14 -0700 (Tue, 11 Jul 2006) $
31   */
32  
33  public class CustomI18nFactorySet extends I18nFactorySet {
34  
35      /***
36       * Constructor.
37       * Init the factory by reading appropriate configuration file.
38       * @param servletContext Servlet context.
39       * @param properties Map containing all properties.
40       * @throws FactoryNotFoundException Can't find factory configuration file.
41       */
42      public CustomI18nFactorySet(ServletContext servletContext, Map properties)
43          throws DefinitionsFactoryException {
44          super(servletContext, properties);
45      }
46  
47      public org.apache.struts.tiles.xmlDefinition.DefinitionsFactory createFactory(
48          Object key,
49          ServletRequest request,
50          ServletContext servletContext)
51          throws DefinitionsFactoryException {
52          return super.createFactory(key, request, servletContext);
53      }
54  
55  
56  
57  }