geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: rev 56040 - geronimo/trunk/modules/system/src/test/org/apache/geronimo/system/configuration
Date Sat, 30 Oct 2004 15:33:51 GMT
Author: adc
Date: Sat Oct 30 08:33:50 2004
New Revision: 56040

Added:
   geronimo/trunk/modules/system/src/test/org/apache/geronimo/system/configuration/MockGBean.java
Log:
Added MockGBean

Added: geronimo/trunk/modules/system/src/test/org/apache/geronimo/system/configuration/MockGBean.java
==============================================================================
--- (empty file)
+++ geronimo/trunk/modules/system/src/test/org/apache/geronimo/system/configuration/MockGBean.java
Sat Oct 30 08:33:50 2004
@@ -0,0 +1,47 @@
+/**
+ *
+ * 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.system.configuration;
+
+import org.apache.geronimo.gbean.GBeanInfo;
+import org.apache.geronimo.gbean.GBeanInfoBuilder;
+
+
+public class MockGBean {
+
+    private static final GBeanInfo GBEAN_INFO;
+
+    private String value;
+
+    public String getValue() {
+        return value;
+    }
+
+    public void setValue(String value) {
+        this.value = value;
+    }
+
+    public static GBeanInfo getGBeanInfo() {
+        return GBEAN_INFO;
+    }
+
+    static {
+        GBeanInfoBuilder infoFactory = new GBeanInfoBuilder("MockGBean", MockGBean.class);
+        infoFactory.addAttribute("value", String.class, true);
+
+        GBEAN_INFO = infoFactory.getBeanInfo();
+    }
+}

Mime
View raw message