1 // ========================================================================
2 // Copyright (c) 2009 Intalio, Inc.
3 // ------------------------------------------------------------------------
4 // All rights reserved. This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v1.0
6 // and Apache License v2.0 which accompanies this distribution.
7 // The Eclipse Public License is available at
8 // http://www.eclipse.org/legal/epl-v10.html
9 // The Apache License v2.0 is available at
10 // http://www.opensource.org/licenses/apache2.0.php
11 // You may elect to redistribute this code under either of these licenses.
12 // Contributors:
13 // Hugues Malphettes - initial API and implementation
14 // ========================================================================
15 package org.eclipse.jetty.osgi.boot;
16
17 /**
18 * Name of the properties that configure a jetty Server OSGi service.
19 */
20 public class OSGiServerConstants
21 {
22 //for managed jetty instances, name of the configuration parameters
23 /**
24 * PID of the jetty servers's ManagedFactory
25 */
26 public static final String MANAGED_JETTY_SERVER_FACTORY_PID = "org.eclipse.jetty.osgi.boot.managedserverfactory";
27
28 /**
29 * The associated value of that configuration parameter is the name under which this
30 * instance of the jetty server is tracked.
31 * When a ContextHandler is deployed and it specifies the managedServerName property, it is deployed
32 * on the corresponding jetty managed server or it throws an exception: jetty server not available.
33 */
34 public static final String MANAGED_JETTY_SERVER_NAME = "managedServerName";
35 /**
36 * Name of the 'default' jetty server instance.
37 * Usually the first one to be created.
38 */
39 public static final String MANAGED_JETTY_SERVER_DEFAULT_NAME = "defaultJettyServer";
40
41 /**
42 * List of URLs to the jetty.xml files that configure th server.
43 */
44 public static final String MANAGED_JETTY_XML_CONFIG_URLS = "jetty.etc.config.urls";
45
46 /**
47 * List of URLs to the folders where the legacy J2EE shared libraries are stored aka lib/ext, lib/jsp etc.
48 */
49 public static final String MANAGED_JETTY_SHARED_LIB_FOLDER_URLS = "managedJettySharedLibFolderUrls";
50
51 }