cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r980630 - in /cxf/trunk/api/src/main/java/org/apache/cxf/annotations: EndpointProperties.java EndpointProperty.java
Date Fri, 30 Jul 2010 01:25:28 GMT
Author: dkulp
Date: Fri Jul 30 01:25:28 2010
New Revision: 980630

URL: http://svn.apache.org/viewvc?rev=980630&view=rev
Log:
Add ability to configure basic endpoint properties from an annoation.

Added:
    cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperties.java   (with
props)
    cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperty.java   (with props)

Added: cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperties.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperties.java?rev=980630&view=auto
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperties.java (added)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperties.java Fri Jul
30 01:25:28 2010
@@ -0,0 +1,43 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.cxf.annotations;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Specifies properties to record for the endpoint
+ */
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ ElementType.TYPE })
+public @interface EndpointProperties {
+    
+    /**
+     * The properties
+     * @return
+     */
+    EndpointProperty[] value();
+    
+}
+

Propchange: cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperties.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperties.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperty.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperty.java?rev=980630&view=auto
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperty.java (added)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperty.java Fri Jul 30
01:25:28 2010
@@ -0,0 +1,48 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.cxf.annotations;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Specifies a property to record for the endpoint
+ */
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ ElementType.TYPE })
+public @interface EndpointProperty {
+    
+    /**
+     * The value(s) of the property
+     * @return
+     */
+    String[] value();
+    
+    /**
+     * The key to record the property
+     * @return
+     */
+    String key();
+}
+

Propchange: cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperty.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/api/src/main/java/org/apache/cxf/annotations/EndpointProperty.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



Mime
View raw message