001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one
003     * or more contributor license agreements.  See the NOTICE file
004     * distributed with this work for additional information
005     * regarding copyright ownership.  The ASF licenses this file
006     * to you under the Apache License, Version 2.0 (the
007     * "License"); you may not use this file except in compliance
008     * with the License.  You may obtain a copy of the License at
009     *
010     *   http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing,
013     * software distributed under the License is distributed on an
014     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015     * KIND, either express or implied.  See the License for the
016     * specific language governing permissions and limitations
017     * under the License.
018     */
019    package org.apache.felix.framework.util;
020    
021    public interface FelixConstants extends org.osgi.framework.Constants
022    {
023        public static final String SYSTEM_BUNDLE_SYMBOLICNAME = "org.apache.felix.framework";
024        // Framework constants and values.
025        public static final String FRAMEWORK_VERSION_VALUE = "1.5";
026        public static final String FRAMEWORK_VENDOR_VALUE = "Apache Software Foundation";
027    
028        // Framework constants and values.
029        public static final String FELIX_VERSION_PROPERTY = "felix.version";
030    
031        // Miscellaneous manifest constants.
032        public static final String DIRECTIVE_SEPARATOR = ":=";
033        public static final String ATTRIBUTE_SEPARATOR = "=";
034        public static final String CLASS_PATH_SEPARATOR = ",";
035        public static final String CLASS_PATH_DOT = ".";
036        public static final String PACKAGE_SEPARATOR = ";";
037        public static final String VERSION_SEGMENT_SEPARATOR = ".";
038        public static final int VERSION_SEGMENT_COUNT = 3;
039        public static final String BUNDLE_NATIVECODE_OPTIONAL = "*";
040    
041        // Miscellaneous OSGi constants.
042        public static final String BUNDLE_URL_PROTOCOL = "bundle";
043    
044        // Miscellaneous framework configuration property names.
045        public static final String FRAMEWORK_BUNDLECACHE_IMPL
046            = "felix.bundlecache.impl";
047        public static final String LOG_LEVEL_PROP = "felix.log.level";
048        public static final String LOG_LOGGER_PROP = "felix.log.logger";
049        public static final String SYSTEMBUNDLE_ACTIVATORS_PROP
050            = "felix.systembundle.activators";
051        public static final String BUNDLE_STARTLEVEL_PROP
052            = "felix.startlevel.bundle";
053        public static final String SERVICE_URLHANDLERS_PROP = "felix.service.urlhandlers";
054        public static final String IMPLICIT_BOOT_DELEGATION_PROP = "felix.bootdelegation.implicit";
055        public static final String BOOT_CLASSLOADERS_PROP = "felix.bootdelegation.classloaders";
056    
057        // Start level-related constants.
058        public static final int FRAMEWORK_INACTIVE_STARTLEVEL = 0;
059        public static final int FRAMEWORK_DEFAULT_STARTLEVEL = 1;
060        public static final int SYSTEMBUNDLE_DEFAULT_STARTLEVEL = 0;
061        public static final int BUNDLE_DEFAULT_STARTLEVEL = 1;
062    
063        // Miscellaneous properties values.
064        public static final String FAKE_URL_PROTOCOL_VALUE = "location:";
065        public static final String FELIX_EXTENSION_ACTIVATOR = "Felix-Activator";
066    }