beehive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mm...@apache.org
Subject svn commit: rev 43696 - incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations
Date Fri, 10 Sep 2004 23:46:02 GMT
Author: mmerz
Date: Fri Sep 10 16:46:00 2004
New Revision: 43696

Added:
   incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeWebParamAnnotation.java
   incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeWebResultAnnotation.java
Log:
Added the fake annotations for testing.

Contributor: Daryoush Mehrtash



Added: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeWebParamAnnotation.java
==============================================================================
--- (empty file)
+++ incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeWebParamAnnotation.java
Fri Sep 10 16:46:00 2004
@@ -0,0 +1,71 @@
+package org.apache.beehive.wsm.jsr181.model.fakeAnnotations;
+
+
+import java.lang.annotation.Annotation;
+
+import javax.jws.WebParam;
+import javax.jws.WebParam.Mode;
+/*
+ * Copyright 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.
+ *
+ * $Header:$
+ */
+
+//org.apache.beehive.wsm.jsr181.model.fakeAnnotations.FakeWebParamAnnotation.java
+public class FakeWebParamAnnotation implements Annotation, WebParam {
+
+    private String name;
+    private Mode mode;
+    private boolean header;
+
+    /**
+     * 
+     */
+    public FakeWebParamAnnotation(String name, WebParam.Mode mode, boolean header) {
+        super();
+        this.name=name;
+        this.mode=mode;
+        this.header=header;
+    }
+
+    /* (non-Javadoc)
+     * @see java.lang.annotation.Annotation#annotationType()
+     */
+    public Class< ? extends Annotation> annotationType() {
+        return WebParam.class;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.WebParam#name()
+     */
+    public String name() {
+        return name;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.WebParam#mode()
+     */
+    public Mode mode() {
+        return mode;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.WebParam#header()
+     */
+    public boolean header() {
+        return header;
+    }
+
+}

Added: incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeWebResultAnnotation.java
==============================================================================
--- (empty file)
+++ incubator/beehive/trunk/wsm/drt/tests/org/apache/beehive/wsm/jsr181/model/fakeAnnotations/FakeWebResultAnnotation.java
Fri Sep 10 16:46:00 2004
@@ -0,0 +1,52 @@
+package org.apache.beehive.wsm.jsr181.model.fakeAnnotations;
+
+
+import java.lang.annotation.Annotation;
+
+import javax.jws.WebResult;
+/*
+ * Copyright 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.
+ *
+ * $Header:$
+ */
+
+//org.apache.beehive.wsm.jsr181.model.fakeAnnotations.FakeWebResultAnnotation.java
+public class FakeWebResultAnnotation implements Annotation, WebResult {
+
+    private String name;
+
+    /**
+     * 
+     */
+    public FakeWebResultAnnotation(String name) {
+        super();
+        this.name = name;
+    }
+
+    /* (non-Javadoc)
+     * @see java.lang.annotation.Annotation#annotationType()
+     */
+    public Class< ? extends Annotation> annotationType() {
+        return WebResult.class;
+    }
+
+    /* (non-Javadoc)
+     * @see javax.jws.WebResult#name()
+     */
+    public String name() {
+        return name;
+    }
+
+}

Mime
View raw message