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 20 package org.netbeans.modules.j2ee.deployment.plugins.api; 21 22 23 import org.openide.nodes.Node; 24 import org.openide.util.Lookup; 25 26 /** 27 * This interface allows plugin to create all the registry nodes 28 * (other than the root node) as {@link org.openide.nodes.Node} subclasses, 29 * and use {@link org.openide.nodes.FilterNode} to generate the display, 30 * adding infrastructure actions in, and exposing certain infrastructure to 31 * the plugins for use in constructing nodes. 32 * Use a look-like infrastructure so migration to looks can happen easier. 33 * Plugins need to register an instance of this class in module layer in folder 34 * <code>J2EE/DeploymentPlugins/{plugin_name}</code>. 35 * 36 * @see org.openide.nodes.Node 37 * @see org.openide.nodes.FilterNode 38 * 39 * @author George Finklang 40 */ 41 public interface RegistryNodeFactory { 42 43 /** 44 * Return node representing the admin server. Children of this node are filtered. 45 * Start/Stop/Remove/SetAsDefault actions will be added by FilterNode if appropriate. 46 * @param lookup will contain DeploymentFactory, DeploymentManager, Management objects. 47 * @return admin server node. 48 */ 49 public Node getManagerNode(Lookup lookup); 50 51 /** 52 * Provide node representing Deployment API Target object. 53 * Start/Stop/SetAsDefault actions will be added by FilterNode if appropriate. 54 * @param lookup will contain DeploymentFactory, DeploymentManager, Target, Management objects. 55 * @return target server node 56 */ 57 public Node getTargetNode(Lookup lookup); 58 } 59