geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bsny...@apache.org
Subject svn commit: r463057 - in /geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org: ./ apache/ apache/geronimo/ apache/geronimo/plugins/ apache/geronimo/plugins/spring/ apache/geronimo/plugins/spring/SpringGBean.java
Date Wed, 11 Oct 2006 23:18:47 GMT
Author: bsnyder
Date: Wed Oct 11 16:18:46 2006
New Revision: 463057

URL: http://svn.apache.org/viewvc?view=rev&rev=463057
Log:
Adding the SpringGBean.

Added:
    geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org/
    geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org/apache/
    geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org/apache/geronimo/
    geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org/apache/geronimo/plugins/
    geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org/apache/geronimo/plugins/spring/
    geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org/apache/geronimo/plugins/spring/SpringGBean.java
  (with props)

Added: geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org/apache/geronimo/plugins/spring/SpringGBean.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org/apache/geronimo/plugins/spring/SpringGBean.java?view=auto&rev=463057
==============================================================================
--- geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org/apache/geronimo/plugins/spring/SpringGBean.java
(added)
+++ geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org/apache/geronimo/plugins/spring/SpringGBean.java
Wed Oct 11 16:18:46 2006
@@ -0,0 +1,83 @@
+/**
+ *
+ * Copyright 2003-2004 The Apache Software Foundation
+ *
+ *  Licensed 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.plugins.spring;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.geronimo.gbean.GBeanInfo;
+import org.apache.geronimo.gbean.GBeanInfoBuilder;
+import org.apache.geronimo.gbean.GBeanLifecycle;
+
+/**
+ * A GBean that starts up configurations from the <a href="http://springframework.org/">Spring
Framework</a>
+ *
+ * @todo Add the ability to use various resources that are configured via the
+ * Spring configuration (e.g., JDBC resources, JMS resources, transaction
+ * manager, etc.)
+ *
+ * @version $Rev$ $Date: 2005-12-10 19:48:27 -0700 (Sat, 10 Dec 2005) $
+ */
+public class SpringGBean implements GBeanLifecycle {
+
+    private static final Log log = LogFactory.getLog("SpringGBean");
+
+    private String configFileName;
+    private String contextName;
+
+    public SpringGBean() {
+    }
+
+    public void setConfigFileName(String name) {
+        this.configFileName = name;
+    }
+
+    public String getConfigFileName() {
+        return this.configFileName;
+    }
+
+    public void setContextName(String name) {
+        this.contextName = name;
+    }
+
+    public String getContextName() {
+        return this.contextName;
+    }
+
+    public void doStart() throws Exception {
+        log.debug("Started");
+    }
+
+    public void doStop() throws Exception {
+        log.debug("Stopped");
+    }
+
+    public void doFail() {
+    }
+
+    public static final GBeanInfo GBEAN_INFO;
+
+    public static GBeanInfo getGBeanInfo() {
+        return GBEAN_INFO;
+    }
+
+    static {
+        GBeanInfoBuilder infoFactory = GBeanInfoBuilder.createStatic("Spring GBean", SpringGBean.class);
+        infoFactory.addAttribute("configFileName", String.class, true, true);
+        infoFactory.addAttribute("contextName", String.class, true, true);
+        GBEAN_INFO = infoFactory.getBeanInfo();
+    }
+}

Propchange: geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org/apache/geronimo/plugins/spring/SpringGBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/spring/trunk/modules/spring-integration-service/src/java/org/apache/geronimo/plugins/spring/SpringGBean.java
------------------------------------------------------------------------------
    svn:keywords = Id Revision



Mime
View raw message