001// Licensed under the Apache License, Version 2.0 (the "License");
002// you may not use this file except in compliance with the License.
003// You may obtain a copy of the License at
004//
005// http://www.apache.org/licenses/LICENSE-2.0
006//
007// Unless required by applicable law or agreed to in writing, software
008// distributed under the License is distributed on an "AS IS" BASIS,
009// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
010// See the License for the specific language governing permissions and
011// limitations under the License.
012
013package org.apache.tapestry5.modules;
014
015import org.apache.tapestry5.SymbolConstants;
016import org.apache.tapestry5.commons.MappedConfiguration;
017import org.apache.tapestry5.ioc.annotations.Contribute;
018import org.apache.tapestry5.services.compatibility.Compatibility;
019import org.apache.tapestry5.services.compatibility.Trait;
020
021/**
022 * Module which defines the options needed to run Tapestry without Bootstrap. You'll need
023 * to define the CSS file to be included in all pages by setting the 
024 * <code>tapestry.default-stylesheet</code> configuration symbol 
025 * ({@link SymbolConstants#DEFAULT_STYLESHEET}). Notice Tapestry will not provide any 
026 * CSS, so you're on your own regarding stylesheets.
027 * 
028 * @since 5.5
029 */
030public class NoBootstrapModule
031{
032    @Contribute(Compatibility.class)
033    public static void setupCompatibilityDefaults(MappedConfiguration<Trait, Boolean> configuration)
034    {
035        configuration.add(Trait.BOOTSTRAP_3, false);
036    }
037}