You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2009/10/22 17:41:14 UTC
svn commit: r828757 -
/labs/magma/trunk/beans-richtext/src/main/java/org/apache/magma/validation/validators/InferConsiderOnRichTextValidated.aj
Author: simoneg
Date: Thu Oct 22 15:41:14 2009
New Revision: 828757
URL: http://svn.apache.org/viewvc?rev=828757&view=rev
Log:
Add @Consider automagically
Added:
labs/magma/trunk/beans-richtext/src/main/java/org/apache/magma/validation/validators/InferConsiderOnRichTextValidated.aj
Added: labs/magma/trunk/beans-richtext/src/main/java/org/apache/magma/validation/validators/InferConsiderOnRichTextValidated.aj
URL: http://svn.apache.org/viewvc/labs/magma/trunk/beans-richtext/src/main/java/org/apache/magma/validation/validators/InferConsiderOnRichTextValidated.aj?rev=828757&view=auto
==============================================================================
--- labs/magma/trunk/beans-richtext/src/main/java/org/apache/magma/validation/validators/InferConsiderOnRichTextValidated.aj (added)
+++ labs/magma/trunk/beans-richtext/src/main/java/org/apache/magma/validation/validators/InferConsiderOnRichTextValidated.aj Thu Oct 22 15:41:14 2009
@@ -0,0 +1,13 @@
+package org.apache.magma.validation.validators;
+
+import org.apache.magma.beans.Consider;
+import org.apache.magma.beans.RichTextString;
+import org.apache.magma.beans.MagmaBeanSupport;
+
+public aspect InferConsiderOnRichTextValidated {
+
+ // TODO worked around for AspectJ bug
+ declare @method : (@RichText !@Consider public * org.apache.magma.beans.*agmaBeanSupport+.get*()) : @Consider(RichTextString.class);
+ declare @method : (@RichText !@Consider public void org.apache.magma.beans.*agmaBeanSupport+.set*(..)) : @Consider(RichTextString.class);
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org