geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r416201 - in /geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean: ShellServerDaemon.java ShellServerDaemonGBean.java
Date Thu, 22 Jun 2006 02:07:41 GMT
Author: jdillon
Date: Wed Jun 21 19:07:41 2006
New Revision: 416201

URL: http://svn.apache.org/viewvc?rev=416201&view=rev
Log:
Tryign to grok how to make gbeans

Added:
    geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemon.java
  (with props)
Modified:
    geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemonGBean.java

Added: geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemon.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemon.java?rev=416201&view=auto
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemon.java
(added)
+++ geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemon.java
Wed Jun 21 19:07:41 2006
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2006 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.gshell.server.gbean;
+
+/**
+ * ???
+ *
+ * @version $Id$
+ */
+public interface ShellServerDaemon
+{
+    //
+    // Empty
+    //
+}
\ No newline at end of file

Propchange: geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemon.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemon.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemon.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemonGBean.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemonGBean.java?rev=416201&r1=416200&r2=416201&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemonGBean.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-gbean/src/main/java/org/apache/geronimo/gshell/server/gbean/ShellServerDaemonGBean.java
Wed Jun 21 19:07:41 2006
@@ -35,7 +35,7 @@
  * @version $Id$
  */
 public class ShellServerDaemonGBean
-    implements GBeanLifecycle
+    implements ShellServerDaemon, GBeanLifecycle
 {
     private static final Log log = LogFactory.getLog(ShellServerDaemonGBean.class);
 
@@ -115,11 +115,15 @@
     public static final GBeanInfo GBEAN_INFO;
 
     static {
-        GBeanInfoBuilder infoFactory = new GBeanInfoBuilder(
+        GBeanInfoBuilder factory = GBeanInfoBuilder.createStatic(
             "Shell Server Daemon",
             ShellServerDaemonGBean.class);
 
-        GBEAN_INFO = infoFactory.getBeanInfo();
+        factory.addInterface(ShellServerDaemon.class);
+
+        factory.addAttribute("port", Integer.TYPE, true, true);
+
+        GBEAN_INFO = factory.getBeanInfo();
     }
 
     public static GBeanInfo getGBeanInfo() {



Mime
View raw message