You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rm...@apache.org on 2012/02/16 22:31:05 UTC
svn commit: r1245190 - in /openejb/trunk/openejb/container: ./
openejb-doc-api/ openejb-doc-api/src/ openejb-doc-api/src/main/
openejb-doc-api/src/main/java/ openejb-doc-api/src/main/java/org/
openejb-doc-api/src/main/java/org/apache/ openejb-doc-api/s...
Author: rmannibucau
Date: Thu Feb 16 21:31:04 2012
New Revision: 1245190
URL: http://svn.apache.org/viewvc?rev=1245190&view=rev
Log:
proposal to doc with annotation
Added:
openejb/trunk/openejb/container/openejb-doc-api/
openejb/trunk/openejb/container/openejb-doc-api/pom.xml
openejb/trunk/openejb/container/openejb-doc-api/src/
openejb/trunk/openejb/container/openejb-doc-api/src/main/
openejb/trunk/openejb/container/openejb-doc-api/src/main/java/
openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/
openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/
openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/openejb/
openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/openejb/documentation/
openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/openejb/documentation/Documentation.java
openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/openejb/documentation/Property.java
Modified:
openejb/trunk/openejb/container/pom.xml
Added: openejb/trunk/openejb/container/openejb-doc-api/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-doc-api/pom.xml?rev=1245190&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-doc-api/pom.xml (added)
+++ openejb/trunk/openejb/container/openejb-doc-api/pom.xml Thu Feb 16 21:31:04 2012
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>container</artifactId>
+ <groupId>org.apache.openejb</groupId>
+ <version>4.0.0-beta-3-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>openejb-doc-api</artifactId>
+ <name>OpenEJB :: Container :: Doc API</name>
+</project>
Added: openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/openejb/documentation/Documentation.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/openejb/documentation/Documentation.java?rev=1245190&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/openejb/documentation/Documentation.java (added)
+++ openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/openejb/documentation/Documentation.java Thu Feb 16 21:31:04 2012
@@ -0,0 +1,29 @@
+/**
+ * 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.openejb.documentation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Target({ ElementType.ANNOTATION_TYPE })
+@Retention(RetentionPolicy.CLASS)
+public @interface Documentation {
+ String title();
+ String description();
+}
Added: openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/openejb/documentation/Property.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/openejb/documentation/Property.java?rev=1245190&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/openejb/documentation/Property.java (added)
+++ openejb/trunk/openejb/container/openejb-doc-api/src/main/java/org/apache/openejb/documentation/Property.java Thu Feb 16 21:31:04 2012
@@ -0,0 +1,30 @@
+/**
+ * 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.openejb.documentation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Documentation(title = "Properties", description = "openejb configuration properties")
+@Target({ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.LOCAL_VARIABLE})
+@Retention(RetentionPolicy.CLASS)
+public @interface Property {
+ String value();
+ String doc();
+}
Modified: openejb/trunk/openejb/container/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/pom.xml?rev=1245190&r1=1245189&r2=1245190&view=diff
==============================================================================
--- openejb/trunk/openejb/container/pom.xml (original)
+++ openejb/trunk/openejb/container/pom.xml Thu Feb 16 21:31:04 2012
@@ -34,5 +34,6 @@
<module>openejb-jee</module>
<module>openejb-junit</module>
<module>openejb-jsf</module>
+ <module>openejb-doc-api</module>
</modules>
</project>
\ No newline at end of file