KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > server > TomcatServices


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.enterprise.server;
24
25 import java.util.Properties JavaDoc;
26 import com.sun.enterprise.server.pluggable.InternalServicesList;
27
28 /**
29  * pluggable interface (this class will provide ApplicationServer
30  * with the right lifecycles array)
31  */

32 public class TomcatServices implements InternalServicesList {
33
34    public String JavaDoc[][] getServicesByName() {
35         // AdminService need to be first one due to RMI timeup issue.
36
// We need to set securityManager before any runtime.
37
// So, we put the following assumption in the code below:
38
// 1) The constructor of AdminServiceLifeCycle will not
39
// not create any runtime object and cannot access SSL.
40
// 2) Any LifeCycle should not access SSL in the constructor of
41
// LifeCycle. This should be done in onInitialization.
42
String JavaDoc[][] servicesByName = {
43             {"AdminService",
44             "com.sun.enterprise.admin.server.core.AdminServiceLifeCycle"},
45                 //Remote JMX (JSR 160) Connector
46
{"RemoteJmxConnector",
47                   "com.sun.enterprise.admin.server.core.JmxConnectorLifecycle"},
48                 {"SecurityService",
49                 "com.sun.enterprise.security.SecurityLifecycle"},
50                 {"SelfManagement Service",
51                 "com.sun.enterprise.management.selfmanagement.SelfManagementService"},
52             {"PersistenceManagerService",
53         "com.sun.jdo.spi.persistence.support.sqlstore.ejb.PersistenceManagerServiceImpl"},
54         {"JMSProvider",
55         "com.sun.enterprise.jms.JmsProviderLifecycle"},
56         {"WSMgmt Service",
57         "com.sun.enterprise.admin.wsmgmt.lifecycle.AppServWSMgmtAdminLifeCycle"},
58
59         {"System Application Service",
60         "com.sun.enterprise.server.SystemAppLifecycle"},
61         {"LifecycleModuleService",
62         "com.sun.appserv.server.LifecycleModuleService"},
63         {"Application Service",
64         "com.sun.enterprise.server.ApplicationLifecycle"},
65             {"Servlet/JSP Service",
66         "com.sun.enterprise.web.PEWebContainerLifecycle"},
67         {"Pre90LifecycleModuleService",
68         "com.sun.appserv.server.Pre90LifecycleModuleService"},
69                 {"DeclarativeLifecycleEventService",
70                 "com.sun.enterprise.admin.selfmanagement.event.DeclarativeLifecycleEventService"},
71                 //JavaEE Service Engine - Shasta Integration
72
{"JavaEEServiceEngine", "com.sun.enterprise.jbi.serviceengine.bridge.JavaEEServiceEngineLifeCycle"}
73                         
74     };
75     return servicesByName;
76
77    }
78
79 }
80
Popular Tags