Author: jsong
Date: Thu Oct 7 15:14:14 2004
New Revision: 54020
Added:
incubator/beehive/trunk/controls/test/src/controls/org/apache/beehive/controls/test/controls/packaging/
incubator/beehive/trunk/controls/test/src/controls/org/apache/beehive/controls/test/controls/packaging/HelloControl.java
(contents, props changed)
incubator/beehive/trunk/controls/test/src/controls/org/apache/beehive/controls/test/controls/packaging/HelloControlImpl.jcs
(contents, props changed)
Log:
Adding a simple control with ManifestAttribute annotation to test control
packaging.
Added:
incubator/beehive/trunk/controls/test/src/controls/org/apache/beehive/controls/test/controls/packaging/HelloControl.java
==============================================================================
--- (empty file)
+++
incubator/beehive/trunk/controls/test/src/controls/org/apache/beehive/controls/test/controls/packaging/HelloControl.java
Thu Oct 7 15:14:14 2004
@@ -0,0 +1,20 @@
+package org.apache.beehive.controls.test.controls.packaging;
+
+import org.apache.beehive.controls.api.bean.ControlInterface;
+import org.apache.beehive.controls.api.packaging.ManifestAttribute;
+import org.apache.beehive.controls.api.packaging.ManifestAttributes;
+
+/**
+ * A control interface with one method declared.
+ */
+
[EMAIL PROTECTED]
[EMAIL PROTECTED]({
+ @ManifestAttribute(name=";", value="HelloControlIFAttributeValue1"),
+ @ManifestAttribute(name="HelloControlIFAttribute2",
value="HelloControlIFAttributeValue2"),
+ @ManifestAttribute(name="HelloControlIFAttribute3", value=" ")
+})
+public interface HelloControl
+{
+ public String hello(String input);
+}
Added:
incubator/beehive/trunk/controls/test/src/controls/org/apache/beehive/controls/test/controls/packaging/HelloControlImpl.jcs
==============================================================================
--- (empty file)
+++
incubator/beehive/trunk/controls/test/src/controls/org/apache/beehive/controls/test/controls/packaging/HelloControlImpl.jcs
Thu Oct 7 15:14:14 2004
@@ -0,0 +1,15 @@
+package org.apache.beehive.controls.test.controls.packaging;
+
+import org.apache.beehive.controls.api.bean.ControlImplementation;
+
+/**
+ * A simple control impl
+ */
[EMAIL PROTECTED]
+public class HelloControlImpl implements HelloControl
+{
+ public String hello(String input)
+ {
+ return input;
+ }
+}