Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 91106 invoked from network); 20 Jul 2007 10:30:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jul 2007 10:30:02 -0000 Received: (qmail 93375 invoked by uid 500); 20 Jul 2007 10:29:28 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 93234 invoked by uid 500); 20 Jul 2007 10:29:28 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 93222 invoked by uid 99); 20 Jul 2007 10:29:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 03:29:28 -0700 X-ASF-Spam-Status: No, hits=-98.6 required=10.0 tests=ALL_TRUSTED,INFO_TLD,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 03:29:23 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id BE7DF1A9820; Fri, 20 Jul 2007 03:29:02 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r557959 [3/3] - in /geronimo/sandbox/geronimo-netbeans-plugin: ./ nbproject/ nbproject/private/ nbproject/private/profiler/ src/ src/org/ src/org/apache/ src/org/apache/geronimo/ src/org/apache/geronimo/netbeans/ src/org/apache/geronimo/net... Date: Fri, 20 Jul 2007 10:28:50 -0000 To: scm@geronimo.apache.org From: jlaskowski@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070720102902.BE7DF1A9820@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Propchange: geronimo/sandbox/geronimo-netbeans-plugin/LICENSE.txt ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/LICENSE.txt ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/LICENSE.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/NOTICE.txt URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/NOTICE.txt?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/NOTICE.txt (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/NOTICE.txt Fri Jul 20 03:28:39 2007 @@ -0,0 +1,10 @@ +========================================================================= +== NOTICE file corresponding to section 4(d) of the Apache License, == +== Version 2.0, in this case for the Apache Geronimo distribution. == +========================================================================= + +Apache Geronimo +Copyright 2003-2007 The Apache Software Foundation + +This product includes software developed by +The Apache Software Foundation (http://www.apache.org/). Propchange: geronimo/sandbox/geronimo-netbeans-plugin/NOTICE.txt ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/NOTICE.txt ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/NOTICE.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/build.xml URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/build.xml?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/build.xml (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/build.xml Fri Jul 20 03:28:39 2007 @@ -0,0 +1,8 @@ + + + + + + Builds, tests, and runs the project org.apache.geronimo.netbeans. + + Propchange: geronimo/sandbox/geronimo-netbeans-plugin/build.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/build.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/build.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/build.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/sandbox/geronimo-netbeans-plugin/manifest.mf URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/manifest.mf?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/manifest.mf (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/manifest.mf Fri Jul 20 03:28:39 2007 @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +OpenIDE-Module: org.apache.geronimo.netbeans +OpenIDE-Module-Layer: org/apache/geronimo/netbeans/resources/layer.xml +OpenIDE-Module-Localizing-Bundle: org/apache/geronimo/netbeans/resources/Bundle.properties +OpenIDE-Module-Specification-Version: 1.0 + Propchange: geronimo/sandbox/geronimo-netbeans-plugin/manifest.mf ------------------------------------------------------------------------------ svn:executable = * Added: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/build-impl.xml URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/nbproject/build-impl.xml?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/nbproject/build-impl.xml (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/nbproject/build-impl.xml Fri Jul 20 03:28:39 2007 @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/build-impl.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/build-impl.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/build-impl.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/build-impl.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/genfiles.properties URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/nbproject/genfiles.properties?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/nbproject/genfiles.properties (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/nbproject/genfiles.properties Fri Jul 20 03:28:39 2007 @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3ce78166 +build.xml.script.CRC32=06cbcef2 +build.xml.stylesheet.CRC32=05353c81 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=3ce78166 +nbproject/build-impl.xml.script.CRC32=47f49d5d +nbproject/build-impl.xml.stylesheet.CRC32=3f8b4615 Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/genfiles.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/genfiles.properties ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/genfiles.properties ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/genfiles.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/platform.properties URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/nbproject/platform.properties?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/nbproject/platform.properties (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/nbproject/platform.properties Fri Jul 20 03:28:39 2007 @@ -0,0 +1 @@ +nbplatform.active=default Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/platform.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/platform.properties ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/platform.properties ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/platform.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/platform-private.properties URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/platform-private.properties?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/platform-private.properties (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/platform-private.properties Fri Jul 20 03:28:39 2007 @@ -0,0 +1 @@ +user.properties.file=C:\\Documents and Settings\\jlaskowski\\.netbeans\\dev\\build.properties Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/platform-private.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/platform-private.properties ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/platform-private.properties ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/platform-private.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.properties URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.properties?view=auto&rev=557959 ============================================================================== (empty) Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.properties ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.properties ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.xml URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.xml?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.xml (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.xml Fri Jul 20 03:28:39 2007 @@ -0,0 +1,4 @@ + + + + Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/private/private.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.properties URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.properties?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.properties (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.properties Fri Jul 20 03:28:39 2007 @@ -0,0 +1,4 @@ +javac.source=1.5 +javac.compilerargs=-Xlint -Xlint:-serial +license.file=LICENSE.txt +nbm.homepage=http://geronimo.apache.org/devtools/netbeans Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.properties ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.properties ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.xml URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.xml?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.xml (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.xml Fri Jul 20 03:28:39 2007 @@ -0,0 +1,73 @@ + + + org.netbeans.modules.apisupport.project + + + org.apache.geronimo.netbeans + + + + org.netbeans.modules.j2eeapis + + + + 1 + 1.8 + + + + org.netbeans.modules.j2eeserver + + + + 4 + 1.30.0.1 + + + + org.netbeans.modules.java.platform + + + + 1 + 1.9 + + + + org.netbeans.modules.project.libraries + + + + 1 + 1.14 + + + + org.openide.dialogs + + + + 7.5 + + + + org.openide.nodes + + + + 7.2.0.1 + + + + org.openide.util + + + + 7.9.0.1 + + + + + + + Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/nbproject/project.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/Bundle.properties URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/Bundle.properties?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/Bundle.properties (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/Bundle.properties Fri Jul 20 03:28:39 2007 @@ -0,0 +1,7 @@ +LBL_DisplayName=Apache Geronimo 2.0 +LBL_FactoryVersion=Deployment Factory for Apache Geronimo 2.0 Plugin + +MSG_InstallerName=Apache Geronimo Installer +MSG_CreateFailed=Cannot create {0} server instance. +MSG_GeronimoServerPlatform=Apache Geronimo Platform +MSG_InvalidUri=Invalid URI: {0} \ No newline at end of file Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/Bundle.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/Bundle.properties ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/Bundle.properties ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/Bundle.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoConfiguration.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoConfiguration.java?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoConfiguration.java (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoConfiguration.java Fri Jul 20 03:28:39 2007 @@ -0,0 +1,63 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.netbeans; + +import java.io.InputStream; +import java.io.OutputStream; +import javax.enterprise.deploy.model.DDBeanRoot; +import javax.enterprise.deploy.model.DeployableObject; +import javax.enterprise.deploy.spi.DConfigBeanRoot; +import javax.enterprise.deploy.spi.DeploymentConfiguration; +import javax.enterprise.deploy.spi.exceptions.BeanNotFoundException; +import javax.enterprise.deploy.spi.exceptions.ConfigurationException; + +/** + * @version $Rev$ $Date$ + */ +public class GeronimoConfiguration implements DeploymentConfiguration { + + private DeployableObject deployableObject; + + public GeronimoConfiguration(DeployableObject deployableObject) { + this.deployableObject = deployableObject; + } + + public DeployableObject getDeployableObject() { + return deployableObject; + } + + public DConfigBeanRoot getDConfigBeanRoot(DDBeanRoot dDBeanRoot) throws ConfigurationException { + return null; + } + + public void removeDConfigBean(DConfigBeanRoot dConfigBeanRoot) throws BeanNotFoundException { + } + + public DConfigBeanRoot restoreDConfigBean(InputStream is, DDBeanRoot dDBeanRoot) throws ConfigurationException { + return null; + } + + public void saveDConfigBean(OutputStream os, DConfigBeanRoot dConfigBeanRoot) throws ConfigurationException { + } + + public void restore(InputStream is) throws ConfigurationException { + } + + public void save(OutputStream os) throws ConfigurationException { + } + +} Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoConfiguration.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoConfiguration.java ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoConfiguration.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoConfiguration.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentFactory.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentFactory.java?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentFactory.java (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentFactory.java Fri Jul 20 03:28:39 2007 @@ -0,0 +1,69 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.netbeans; + +import javax.enterprise.deploy.shared.factories.DeploymentFactoryManager; +import javax.enterprise.deploy.spi.DeploymentManager; +import javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException; +import javax.enterprise.deploy.spi.factories.DeploymentFactory; +import org.openide.util.NbBundle; + +/** + * @version $Rev$ $Date$ + */ +public class GeronimoDeploymentFactory implements DeploymentFactory { + + public static final String URI_PREFIX = "deployer:geronimo"; + private static DeploymentFactory instance; + + /** + * Executed by NB when the Geronimo deployment factory is required - when? + * It's the method pointed out by layer.xml file in Factory.instance + */ + public static synchronized DeploymentFactory create() { + if (instance == null) { + instance = new GeronimoDeploymentFactory(); + DeploymentFactoryManager.getInstance().registerDeploymentFactory(instance); + } + return instance; + } + + public boolean handlesURI(String uri) { + return uri != null && uri.startsWith(URI_PREFIX); + } + + public DeploymentManager getDeploymentManager(String uri, String username, String password) + throws DeploymentManagerCreationException { + if (!handlesURI(uri)) { + String errorMsg = NbBundle.getMessage(GeronimoDeploymentFactory.class, "MSG_InvalidUri", uri); + throw new DeploymentManagerCreationException(errorMsg); + } + return new GeronimoDeploymentManager(); + } + + public DeploymentManager getDisconnectedDeploymentManager(String uri) throws DeploymentManagerCreationException { + return getDeploymentManager(uri, null, null); + } + + public String getDisplayName() { + return NbBundle.getMessage(GeronimoDeploymentFactory.class, "LBL_DisplayName"); + } + + public String getProductVersion() { + return NbBundle.getMessage(GeronimoDeploymentFactory.class, "LBL_FactoryVersion"); + } +} Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentFactory.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentFactory.java ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentFactory.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentFactory.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentManager.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentManager.java?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentManager.java (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentManager.java Fri Jul 20 03:28:39 2007 @@ -0,0 +1,128 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.netbeans; + +import java.io.File; +import java.io.InputStream; +import java.util.Locale; +import javax.enterprise.deploy.model.DeployableObject; +import javax.enterprise.deploy.shared.DConfigBeanVersionType; +import javax.enterprise.deploy.shared.ModuleType; +import javax.enterprise.deploy.spi.DeploymentConfiguration; +import javax.enterprise.deploy.spi.DeploymentManager; +import javax.enterprise.deploy.spi.Target; +import javax.enterprise.deploy.spi.TargetModuleID; +import javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException; +import javax.enterprise.deploy.spi.exceptions.InvalidModuleException; +import javax.enterprise.deploy.spi.exceptions.TargetException; +import javax.enterprise.deploy.spi.status.ProgressObject; + +/** + * @version $Rev$ $Date$ + */ +public class GeronimoDeploymentManager implements DeploymentManager { + + public Target[] getTargets() throws IllegalStateException { + return null; + } + + public TargetModuleID[] getRunningModules(ModuleType moduleType, Target[] target) throws TargetException, IllegalStateException { + return null; + } + + public TargetModuleID[] getNonRunningModules(ModuleType moduleType, Target[] target) throws TargetException, IllegalStateException { + return null; + } + + public TargetModuleID[] getAvailableModules(ModuleType moduleType, Target[] target) throws TargetException, IllegalStateException { + return null; + } + + public DeploymentConfiguration createConfiguration(DeployableObject deployableObject) throws InvalidModuleException { + return new GeronimoConfiguration(deployableObject); + } + + public ProgressObject distribute(Target[] target, File file, File file2) throws IllegalStateException { + return null; + } + + @SuppressWarnings("deprecation") + public ProgressObject distribute(Target[] target, InputStream is, InputStream is2) throws IllegalStateException { + return null; + } + + public ProgressObject distribute(Target[] arg0, ModuleType arg1, InputStream arg2, InputStream arg3) throws IllegalStateException { + throw new UnsupportedOperationException("Not supported yet."); + } + + public ProgressObject start(TargetModuleID[] targetModuleId) throws IllegalStateException { + return null; + } + + public ProgressObject stop(TargetModuleID[] targetModuleId) throws IllegalStateException { + return null; + } + + public ProgressObject undeploy(TargetModuleID[] targetModuleId) throws IllegalStateException { + return null; + } + + public boolean isRedeploySupported() { + return false; + } + + public ProgressObject redeploy(TargetModuleID[] targetModuleId, File file, File file2) throws UnsupportedOperationException, IllegalStateException { + return null; + } + + public ProgressObject redeploy(TargetModuleID[] targetModuleId, InputStream is, InputStream is2) throws UnsupportedOperationException, IllegalStateException { + return null; + } + + public void release() { + } + + public Locale getDefaultLocale() { + return null; + } + + public Locale getCurrentLocale() { + return null; + } + + public void setLocale(Locale locale) throws UnsupportedOperationException { + } + + public Locale[] getSupportedLocales() { + return null; + } + + public boolean isLocaleSupported(Locale locale) { + return false; + } + + public DConfigBeanVersionType getDConfigBeanVersion() { + return null; + } + + public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType dConfigBeanVersionType) { + return false; + } + + public void setDConfigBeanVersion(DConfigBeanVersionType dConfigBeanVersionType) throws DConfigBeanVersionUnsupportedException { + } +} Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentManager.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentManager.java ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentManager.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoDeploymentManager.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoInstantiatingIterator.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoInstantiatingIterator.java?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoInstantiatingIterator.java (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoInstantiatingIterator.java Fri Jul 20 03:28:39 2007 @@ -0,0 +1,126 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.netbeans; + +import java.awt.Component; +import java.io.IOException; +import java.util.HashSet; +import java.util.Set; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.swing.JLabel; +import javax.swing.JPanel; +import javax.swing.event.ChangeListener; +import org.netbeans.modules.j2ee.deployment.plugins.api.InstanceProperties; +import org.openide.WizardDescriptor; +import org.openide.WizardDescriptor.Panel; +import org.openide.util.HelpCtx; +import org.openide.util.NbBundle; + +/** + * @version $Rev$ $Date$ + */ +class GeronimoInstantiatingIterator implements WizardDescriptor.InstantiatingIterator { + + private static final String PROP_DISPLAY_NAME = "ServInstWizard_displayName"; + private static final Logger logger = Logger.getLogger(GeronimoInstantiatingIterator.class.getName()); + + private InstallPanel panel; + private WizardDescriptor wizard; + + public Set instantiate() throws IOException { + Set result = new HashSet(); + String displayName = (String) wizard.getProperty(PROP_DISPLAY_NAME); + String url = GeronimoDeploymentFactory.URI_PREFIX + ":localhost:8080"; + String username = "username"; + String password = "password"; + try { + InstanceProperties ip = InstanceProperties.createInstanceProperties(url, username, password, displayName); + result.add(ip); + } catch (Exception ex) { + logger.log(Level.INFO, ex.getMessage()); + } + return result; + } + + public void initialize(WizardDescriptor wizard) { + this.wizard = wizard; + } + + public void uninitialize(WizardDescriptor wizard) { + } + + public Panel current() { + if (panel == null) { + panel = new InstallPanel(); + } + return panel; + } + + public String name() { + return NbBundle.getMessage(GeronimoInstantiatingIterator.class, "MSG_InstallerName"); + } + + public boolean hasNext() { + return false; + } + + public boolean hasPrevious() { + return false; + } + + public void nextPanel() { + } + + public void previousPanel() { + } + + public void addChangeListener(ChangeListener l) { + } + + public void removeChangeListener(ChangeListener l) { + } + + private static class InstallPanel implements WizardDescriptor.Panel { + + public void removeChangeListener(ChangeListener l) { + } + + public void addChangeListener(ChangeListener l) { + } + + public void storeSettings(Object settings) { + } + + public void readSettings(Object settings) { + } + + public boolean isValid() { + return true; + } + + public HelpCtx getHelp() { + return HelpCtx.DEFAULT_HELP; + } + + public Component getComponent() { + JPanel panel = new JPanel(); + panel.add(new JLabel("< Put your installation form implementation here! >")); + return panel; + } + } +} Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoInstantiatingIterator.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoInstantiatingIterator.java ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoInstantiatingIterator.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoInstantiatingIterator.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformFactory.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformFactory.java?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformFactory.java (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformFactory.java Fri Jul 20 03:28:39 2007 @@ -0,0 +1,32 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.netbeans; + +import javax.enterprise.deploy.spi.DeploymentManager; +import org.netbeans.modules.j2ee.deployment.plugins.spi.J2eePlatformFactory; +import org.netbeans.modules.j2ee.deployment.plugins.spi.J2eePlatformImpl; + +/** + * @version $Rev$ $Date$ + */ +public class GeronimoJ2eePlatformFactory extends J2eePlatformFactory { + + public J2eePlatformImpl getJ2eePlatformImpl(DeploymentManager dm) { + return new GeronimoJ2eePlatformImpl(); + } + +} Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformFactory.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformFactory.java ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformFactory.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformFactory.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformImpl.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformImpl.java?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformImpl.java (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformImpl.java Fri Jul 20 03:28:39 2007 @@ -0,0 +1,96 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.netbeans; + +import java.awt.Image; +import java.io.File; +import java.util.HashSet; +import java.util.Set; +import org.netbeans.api.java.platform.JavaPlatform; +import org.netbeans.api.java.platform.JavaPlatformManager; +import org.netbeans.modules.j2ee.deployment.devmodules.api.J2eeModule; +import org.netbeans.modules.j2ee.deployment.plugins.spi.J2eePlatformImpl; +import org.netbeans.spi.project.libraries.LibraryImplementation; +import org.openide.util.NbBundle; +import org.openide.util.Utilities; + +/** + * @version $Rev$ $Date$ + */ +public class GeronimoJ2eePlatformImpl extends J2eePlatformImpl { + + private static final Set SPEC_VERSIONS = new HashSet(); + static { + SPEC_VERSIONS.add(J2eeModule.J2EE_14); + SPEC_VERSIONS.add(J2eeModule.JAVA_EE_5); + } + + private static final Set MODULE_TYPES = new HashSet(); + static { + MODULE_TYPES.add(J2eeModule.EAR); + MODULE_TYPES.add(J2eeModule.WAR); + MODULE_TYPES.add(J2eeModule.EJB); + MODULE_TYPES.add(J2eeModule.CONN); + MODULE_TYPES.add(J2eeModule.CLIENT); + } + + private static final Set JAVA_VERSIONS = new HashSet(); + static { + JAVA_VERSIONS.add("1.4"); + JAVA_VERSIONS.add("1.5"); + } + + public LibraryImplementation[] getLibraries() { + return new LibraryImplementation[0]; + } + + public String getDisplayName() { + return NbBundle.getMessage(GeronimoJ2eePlatformImpl.class, "MSG_GeronimoServerPlatform"); + } + + public Image getIcon() { + return Utilities.loadImage("org/apache/geronimo/netbeans/resources/geronimo.gif"); + } + + public File[] getPlatformRoots() { + return new File[0]; + } + + public File[] getToolClasspathEntries(String toolName) { + return new File[0]; + } + + public boolean isToolSupported(String toolName) { + return false; + } + + public Set getSupportedSpecVersions() { + return SPEC_VERSIONS; + } + + public Set getSupportedModuleTypes() { + return MODULE_TYPES; + } + + public Set getSupportedJavaPlatformVersions() { + return JAVA_VERSIONS; + } + + public JavaPlatform getJavaPlatform() { + return JavaPlatformManager.getDefault().getDefaultPlatform(); + } +} Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformImpl.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformImpl.java ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformImpl.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoJ2eePlatformImpl.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoOptionalDeploymentManagerFactory.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoOptionalDeploymentManagerFactory.java?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoOptionalDeploymentManagerFactory.java (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoOptionalDeploymentManagerFactory.java Fri Jul 20 03:28:39 2007 @@ -0,0 +1,46 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.netbeans; + +import javax.enterprise.deploy.spi.DeploymentManager; +import org.netbeans.modules.j2ee.deployment.plugins.spi.FindJSPServlet; +import org.netbeans.modules.j2ee.deployment.plugins.spi.IncrementalDeployment; +import org.netbeans.modules.j2ee.deployment.plugins.spi.OptionalDeploymentManagerFactory; +import org.netbeans.modules.j2ee.deployment.plugins.spi.StartServer; +import org.openide.WizardDescriptor; + +/** + * @version $Rev$ $Date$ + */ +public class GeronimoOptionalDeploymentManagerFactory extends OptionalDeploymentManagerFactory { + + public StartServer getStartServer(DeploymentManager dm) { + return new GeronimoStartServer(); + } + + public IncrementalDeployment getIncrementalDeployment(DeploymentManager dm) { + return null; + } + + public FindJSPServlet getFindJSPServlet(DeploymentManager dm) { + return null; + } + + public WizardDescriptor.InstantiatingIterator getAddInstanceIterator() { + return new GeronimoInstantiatingIterator(); + } +} Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoOptionalDeploymentManagerFactory.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoOptionalDeploymentManagerFactory.java ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoOptionalDeploymentManagerFactory.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoOptionalDeploymentManagerFactory.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoStartServer.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoStartServer.java?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoStartServer.java (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoStartServer.java Fri Jul 20 03:28:39 2007 @@ -0,0 +1,73 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.netbeans; + +import javax.enterprise.deploy.spi.Target; +import javax.enterprise.deploy.spi.status.ProgressObject; +import org.netbeans.modules.j2ee.deployment.plugins.api.ServerDebugInfo; +import org.netbeans.modules.j2ee.deployment.plugins.spi.StartServer; + +/** + * @version $Rev$ $Date$ + */ +public class GeronimoStartServer extends StartServer { + + public boolean isAlsoTargetServer(Target target) { + return false; + } + + public boolean supportsStartDeploymentManager() { + return false; + } + + public ProgressObject startDeploymentManager() { + return null; + } + + public ProgressObject stopDeploymentManager() { + return null; + } + + public boolean needsStartForConfigure() { + return false; + } + + public boolean needsStartForTargetList() { + return false; + } + + public boolean needsStartForAdminConfig() { + return false; + } + + public boolean isRunning() { + return false; + } + + public boolean isDebuggable(Target target) { + return false; + } + + public ProgressObject startDebugging(Target target) { + return null; + } + + public ServerDebugInfo getDebugInfo(Target target) { + return null; + } + +} Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoStartServer.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoStartServer.java ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoStartServer.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/GeronimoStartServer.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/config/GeronimoModuleConfigurationFactory.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/config/GeronimoModuleConfigurationFactory.java?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/config/GeronimoModuleConfigurationFactory.java (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/config/GeronimoModuleConfigurationFactory.java Fri Jul 20 03:28:39 2007 @@ -0,0 +1,48 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.netbeans.config; + +import org.netbeans.modules.j2ee.deployment.common.api.ConfigurationException; +import org.netbeans.modules.j2ee.deployment.devmodules.api.J2eeModule; +import org.netbeans.modules.j2ee.deployment.plugins.spi.config.ModuleConfiguration; +import org.netbeans.modules.j2ee.deployment.plugins.spi.config.ModuleConfigurationFactory; +import org.openide.util.Lookup; +import org.openide.util.lookup.Lookups; + +/** + * @version $Rev$ $Date$ + */ +public class GeronimoModuleConfigurationFactory implements ModuleConfigurationFactory { + + public ModuleConfiguration create(final J2eeModule j2eeModule) throws ConfigurationException { + return new ModuleConfiguration() { + + public Lookup getLookup() { + return Lookups.fixed(this); + } + + public J2eeModule getJ2eeModule() { + return j2eeModule; + } + + public void dispose() { + } + + }; + } + +} Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/config/GeronimoModuleConfigurationFactory.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/config/GeronimoModuleConfigurationFactory.java ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/config/GeronimoModuleConfigurationFactory.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/config/GeronimoModuleConfigurationFactory.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/Bundle.properties URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/Bundle.properties?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/Bundle.properties (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/Bundle.properties Fri Jul 20 03:28:39 2007 @@ -0,0 +1,2 @@ +TXT_GeronimoManagerNode=.../nodes/Bundle.properties#TXT_GeronimoManagerNode + Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/Bundle.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/Bundle.properties ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/Bundle.properties ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/Bundle.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoManagerNode.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoManagerNode.java?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoManagerNode.java (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoManagerNode.java Fri Jul 20 03:28:39 2007 @@ -0,0 +1,66 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.netbeans.nodes; + +import java.awt.Component; +import javax.swing.JLabel; +import javax.swing.JPanel; +import org.openide.nodes.AbstractNode; +import org.openide.nodes.Children; +import org.openide.nodes.Node; +import org.openide.util.Lookup; +import org.openide.util.NbBundle; + +/** + * @version $Rev$ $Date$ + */ +class GeronimoManagerNode extends AbstractNode implements Node.Cookie { + + private static String ICON_BASE = "org/apache/geronimo/netbeans/resources/geronimo.gif"; + + private Lookup lookup; + + public GeronimoManagerNode(Lookup lookup) { + super(new Children.Array()); + this.lookup = lookup; + getCookieSet().add(this); + setIconBaseWithExtension(ICON_BASE); + } + + public String getDisplayName() { + return NbBundle.getMessage(GeronimoManagerNode.class, "TXT_GeronimoManagerNode"); + } + + public String getShortDescription() { + return "http://localhost:8080"; + } + + public javax.swing.Action[] getActions(boolean context) { + return new javax.swing.Action[]{}; + } + + public boolean hasCustomizer() { + return true; + } + + public Component getCustomizer() { + JPanel panel = new JPanel(); + panel.add(new JLabel("< Put your customizer implementation here! >")); + return panel; + } + +} Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoManagerNode.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoManagerNode.java ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoManagerNode.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoManagerNode.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoRegistryNodeFactory.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoRegistryNodeFactory.java?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoRegistryNodeFactory.java (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoRegistryNodeFactory.java Fri Jul 20 03:28:39 2007 @@ -0,0 +1,36 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.geronimo.netbeans.nodes; + +import org.netbeans.modules.j2ee.deployment.plugins.spi.RegistryNodeFactory; +import org.openide.util.Lookup; +import org.openide.nodes.Node; + +/** + * @version $Rev$ $Date$ + */ +public class GeronimoRegistryNodeFactory implements RegistryNodeFactory{ + + public Node getManagerNode(Lookup lookup) { + return new GeronimoManagerNode(lookup); + } + + public Node getTargetNode(Lookup lookup) { + return null; + } + +} Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoRegistryNodeFactory.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoRegistryNodeFactory.java ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoRegistryNodeFactory.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/nodes/GeronimoRegistryNodeFactory.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/Bundle.properties URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/Bundle.properties?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/Bundle.properties (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/Bundle.properties Fri Jul 20 03:28:39 2007 @@ -0,0 +1,5 @@ +OpenIDE-Module-Name=Apache Geronimo plugin for NetBeans IDE +OpenIDE-Module-Display-Category=Java EE +OpenIDE-Module-Short-Description=Geronimo NetBeans Plugin +OpenIDE-Module-Long-Description=\ + This plugin enables Java EE 5 development modules to configure, deploy and run Java EE components on Apache Geronimo 2.0 Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/Bundle.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/Bundle.properties ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/Bundle.properties ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/Bundle.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/geronimo.gif URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/geronimo.gif?view=auto&rev=557959 ============================================================================== Binary file - no diff available. Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/geronimo.gif ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/geronimo.gif ------------------------------------------------------------------------------ svn:mime-type = image/gif Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/layer.xml URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/layer.xml?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/layer.xml (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/layer.xml Fri Jul 20 03:28:39 2007 @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/layer.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/layer.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/layer.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/layer.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/nbdep.xml URL: http://svn.apache.org/viewvc/geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/nbdep.xml?view=auto&rev=557959 ============================================================================== --- geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/nbdep.xml (added) +++ geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/nbdep.xml Fri Jul 20 03:28:39 2007 @@ -0,0 +1,27 @@ + + + + + + + deployer:geronimo:localhost:8080 + + / + contextRoot + + \ No newline at end of file Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/nbdep.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/nbdep.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/nbdep.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/geronimo-netbeans-plugin/src/org/apache/geronimo/netbeans/resources/nbdep.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml