Save This Page
Home » org.apache.sling.launchpad.base-2.2.0-source-release » org.apache.sling.launchpad.base.shared » [javadoc | source]
    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one
    3    * or more contributor license agreements.  See the NOTICE file
    4    * distributed with this work for additional information
    5    * regarding copyright ownership.  The ASF licenses this file
    6    * to you under the Apache License, Version 2.0 (the
    7    * "License"); you may not use this file except in compliance
    8    * with the License.  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,
   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   package org.apache.sling.launchpad.base.shared;
   20   
   21   public interface SharedConstants {
   22   
   23       /**
   24        * The name of the configuration property defining the Sling home directory
   25        * (value is "sling.home"). This is a Platform file system directory below
   26        * which all runtime data, such as the Felix bundle archives, logfiles,
   27        * Jackrabbit repository, etc., is located.
   28        * <p>
   29        * The value of this property is derived in a launcher specific way, such as
   30        * system property, command line option, servlet or servlet context
   31        * init-param, servlet context path, etc.
   32        */
   33       public static final String SLING_HOME = "sling.home";
   34   
   35       /**
   36        * Default {@link #SLING_HOME sling.home} value if no other value can be
   37        * resolvled (value is "sling").
   38        */
   39       public static final String SLING_HOME_DEFAULT = "sling";
   40   
   41       /**
   42        * The fully qualified name of the class used by the Standalone Java
   43        * Application main class to control the framework. This class implements
   44        * the {@link Launcher} interface.
   45        */
   46       public static final String DEFAULT_SLING_MAIN = "org.apache.sling.launchpad.base.app.MainDelegate";
   47   
   48       /**
   49        * The fully qualified name of the class used by the Sling Web Applicaiton
   50        * servlet to control the framework. This class implements the
   51        * <code>javax.servlet.Servlet</code> and {@link Launcher} (for setup only)
   52        * interfaces.
   53        */
   54       public static final String DEFAULT_SLING_SERVLET = "org.apache.sling.launchpad.base.webapp.SlingServletDelegate";
   55   
   56       /**
   57        * The name of the file providing the Launcher JAR. On the one hand this is
   58        * the name used to place the JAR file sling.home to use for startup. On the
   59        * other hand, this is the name of the file in the archive (see
   60        * {@link #DEFAULT_SLING_LAUNCHER_JAR}).
   61        */
   62       public static final String LAUNCHER_JAR_REL_PATH = "org.apache.sling.launchpad.base.jar";
   63   
   64       /**
   65        * The absolute path to the launcher JAR file in the archive to copy to the
   66        * sling.home directory.
   67        */
   68       public static final String DEFAULT_SLING_LAUNCHER_JAR = "/resources/"
   69           + LAUNCHER_JAR_REL_PATH;
   70   
   71       /**
   72        * True or false value which controls whether sling will load bundles which
   73        * are contained in the resources/# path locations in the sling jar or war <br/>
   74        * The default is to unpack the jars and deploy them to the startup folder
   75        * in sling home
   76        */
   77       public static final String DISABLE_PACKAGE_BUNDLE_LOADING = "org.apache.sling.launchpad.disable.package.bundle.loading";
   78   
   79       /**
   80        * True or false value which controls whether sling will load bundles which
   81        * are contained in the resources/# path locations in the sling jar or war <br/>
   82        * regardless of the modification time of the Launchpad JAR.
   83        */
   84       public static final String FORCE_PACKAGE_BUNDLE_LOADING = "org.apache.sling.launchpad.force.package.bundle.loading";
   85   
   86   
   87       /**
   88        * The name of the configuration property defining the Sling properties file
   89        * (value is "sling.properties"). This is a Platform file system file
   90        * containing the startup configuration of Sling.
   91        * @since 2.2
   92        */
   93       public static final String SLING_PROPERTIES = "sling.properties";
   94   
   95       /**
   96        * The name of the configuration property defining the Sling properties url
   97        * (value is "sling.properties.url"). This is a url pointing to a resource
   98        * containing the startup configuration of Sling.
   99        * @since 2.2
  100        */
  101       public static final String SLING_PROPERTIES_URL = "sling.properties.url";
  102   
  103   }

Save This Page
Home » org.apache.sling.launchpad.base-2.2.0-source-release » org.apache.sling.launchpad.base.shared » [javadoc | source]