KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > server > pluggable > TomcatPluggableFeatureImpl


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.pluggable;
24
25 import java.util.Properties JavaDoc;
26
27 import com.sun.enterprise.admin.AdminContext;
28 import com.sun.enterprise.admin.event.pluggable.NotificationFactory;
29 import com.sun.enterprise.admin.target.TargetFactory;
30
31 import com.sun.enterprise.pluggable.Utils;
32
33 import com.sun.enterprise.web.SchemaUpdater;
34 import com.sun.enterprise.web.WebContainerStartStopOperation;
35 import com.sun.enterprise.web.WebContainerAdminEventProcessor;
36 import com.sun.enterprise.diagnostics.DiagnosticAgent;
37 import com.sun.enterprise.deployment.pluggable.DeploymentFactory;
38
39 /**
40  * Properties that define implementation classes for pluggable features
41  * used with http engine from tomcat. An instance of this class
42  * should be passed to getInstance() method of PluggableFeatureFactoryImpl
43  * to create and have access to pluggable features.
44  */

45 public class TomcatPluggableFeatureImpl extends Properties JavaDoc {
46
47     /**
48      * Properties to keep feature name and implementation classes.
49      */

50     protected static Properties JavaDoc featureImplClasses;
51
52     static {
53         Properties JavaDoc props = new Properties JavaDoc();
54         props.setProperty(Utils.getNQClassName(InternalServicesList.class),
55                 "com.sun.enterprise.server.TomcatServices");
56         props.setProperty(Utils.getNQClassName(LoggingSupport.class),
57                 "com.sun.enterprise.server.logging.TomcatLoggingSupport");
58         props.setProperty(Utils.getNQClassName(ApplicationLoaderFactory.class),
59                 "com.sun.enterprise.server.pluggable.TomcatApplicationLoaderFactory");
60         props.setProperty(Utils.getNQClassName(DeploymentFactory.class),
61                 "com.sun.enterprise.deployment.pluggable.PEDeploymentFactory");
62
63         props.setProperty(Utils.getNQClassName(NotificationFactory.class),
64                 "com.sun.enterprise.admin.event.pluggable.PENotificationFactory");
65         props.setProperty(Utils.getNQClassName(TargetFactory.class),
66                 "com.sun.enterprise.admin.target.PETargetFactory");
67         props.setProperty(Utils.getNQClassName(AdminContext.class),
68                 "com.sun.enterprise.admin.server.core.AdminContextImpl");
69         props.setProperty(Utils.getNQClassName(WebContainerStartStopOperation.class),
70                 "com.sun.enterprise.web.PEWebContainerStartStopOperation");
71         props.setProperty(Utils.getNQClassName(WebContainerAdminEventProcessor.class),
72                 "com.sun.enterprise.web.PEWebContainerAdminEventProcessor");
73         props.setProperty(Utils.getNQClassName(SchemaUpdater.class),
74                 "com.sun.enterprise.web.PESchemaUpdater");
75         props.setProperty(Utils.getNQClassName(SecuritySupport.class),
76                 "com.sun.enterprise.security.SecuritySupportImpl");
77         props.setProperty(Utils.getNQClassName(WebContainerFeatureFactory.class),
78                 "com.sun.enterprise.web.PEWebContainerFeatureFactoryImpl");
79         props.setProperty(Utils.getNQClassName(DiagnosticAgent.class),
80                 "com.sun.enterprise.diagnostics.PEDiagnosticAgent");
81         props.setProperty(Utils.getNQClassName(LBFeatureFactory.class),
82                 "com.sun.enterprise.server.pluggable.PELBFeatureFactoryImpl");
83         
84         featureImplClasses = props;
85     }
86
87     /**
88      * Default constructor.
89      */

90     public TomcatPluggableFeatureImpl() {
91         super(featureImplClasses);
92     }
93
94 }
95
Popular Tags