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