[jboss-cvs] JBossAS SVN: r71529 - in projects/jboss-mdr/trunk/src/main/org/jboss/metadata/spi: annotation and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Mar 31 18:20:07 EDT 2008


Author: alesj
Date: 2008-03-31 18:20:07 -0400 (Mon, 31 Mar 2008)
New Revision: 71529

Added:
   projects/jboss-mdr/trunk/src/main/org/jboss/metadata/spi/annotation/
   projects/jboss-mdr/trunk/src/main/org/jboss/metadata/spi/annotation/InstanceAnnotation.java
Log:
[JBMDR-21] instance annotation markup

Added: projects/jboss-mdr/trunk/src/main/org/jboss/metadata/spi/annotation/InstanceAnnotation.java
===================================================================
--- projects/jboss-mdr/trunk/src/main/org/jboss/metadata/spi/annotation/InstanceAnnotation.java	                        (rev 0)
+++ projects/jboss-mdr/trunk/src/main/org/jboss/metadata/spi/annotation/InstanceAnnotation.java	2008-03-31 22:20:07 UTC (rev 71529)
@@ -0,0 +1,44 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.metadata.spi.annotation;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.lang.annotation.ElementType;
+
+/**
+ * Add metadata to annotations, whether it should be used for instance metadata check.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+ at Retention(RetentionPolicy.RUNTIME)
+ at Target(ElementType.ANNOTATION_TYPE)
+public @interface InstanceAnnotation
+{
+   /**
+    * Is this an instance metadata annotation
+    *
+    * @return true marked annotation should be used when checking instance metadata
+    */
+   boolean value();
+}




More information about the jboss-cvs-commits mailing list