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: [email protected]
For additional commands, e-mail: [email protected]