KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > weblogic9 > optional > WLOptionalDeploymentManagerFactory


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 package org.netbeans.modules.j2ee.weblogic9.optional;
20
21 import javax.enterprise.deploy.spi.*;
22
23 import org.openide.WizardDescriptor.*;
24 import org.netbeans.modules.j2ee.deployment.plugins.api.*;
25
26 import org.netbeans.modules.j2ee.weblogic9.ui.wizard.*;
27
28 /**
29  * An entry point to the plugin's optional functionality, such as server
30  * start/stop, incremental deployment, custom wizard for instance addition and
31  * the ability to locate the servlet for a jsp page.
32  *
33  * @author Kirill Sorokin
34  */

35 public class WLOptionalDeploymentManagerFactory extends OptionalDeploymentManagerFactory {
36     
37     /**
38      * Returns an object responsible for starting a particular server instance.
39      * The information about the instance is fetched from the supplied
40      * deployment manager.
41      *
42      * @param dm the server's deployment manager
43      *
44      * @return an object for starting/stopping the server
45      */

46     public StartServer getStartServer(DeploymentManager dm) {
47         return new WLStartServer(dm);
48     }
49
50     /**
51      * Returns an object responsible for performing incremental deployment on
52      * a particular server instance. The instance information should be fetched
53      * from the supplied deployment manager.
54      * We do not support that, thus return null
55      *
56      * @param dm the server's deployment manager
57      *
58      * @return an object for performing the incremental deployment, i.e. null
59      */

60     public IncrementalDeployment getIncrementalDeployment(DeploymentManager dm) {
61         return null;
62     }
63
64     /**
65      * Returns an object responsible for finding a corresponsing servlet for a
66      * given jsp deployed on a particular server instance. Instance data should
67      * be fetched from the supplied deployment manager.
68      * We do not support that, thus return null
69      *
70      * @param dm the server's deployment manager
71      *
72      * @return an object for finding the servlet, i.e. null
73      */

74     public FindJSPServlet getFindJSPServlet(DeploymentManager dm) {
75         return null;
76     }
77
78     /**
79      * Returns an instance of the custom wizard for adding a server instance.
80      *
81      * @return a custom wizard
82      */

83     public InstantiatingIterator getAddInstanceIterator() {
84         return new WLInstantiatingIterator();
85     }
86     
87 }
88
Popular Tags