// Copyright 2006, 2007, 2008, 2009, 2010 The Apache Software Foundation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
The application is primarily configured via context-level init parameters.
In addition, a JVM system property affects configuration:
(with default value "production"). This property is a comma-separated list of execution modes.
For each mode, an additional init parameter is checked for:
tapestry.mode-modules; this is a comma-separated list of module class names
to load. In this way, more precise control over the available modules can be obtained which is
often needed during testing.
is stored in the ServletContext. This allows other code, beyond Tapestry, to obtain the Registry and, from it, any Tapestry services. Such code should be careful about invoking
. The application name is the capitalization of the filter name (as specified in web.xml).
filterName, "servlet", executionMode);
to allow subclasses to peform any shutdown logic, then shuts down the registry, and removes it from the ServletContext.
to allow subclasses to add additional shutdown logic to the filter. The Registry will be shutdown after this call. This implementation does nothing, and may be overridden in subclasses.