[jboss-cvs] jboss-seam/src/main/org/jboss/seam/init ...
Gavin King
gavin.king at jboss.com
Mon Jul 16 11:15:01 EDT 2007
User: gavin
Date: 07/07/16 11:15:01
Modified: src/main/org/jboss/seam/init ComponentDescriptor.java
Log:
wrap seam filters around seamtest requests
Revision Changes Path
1.13 +4 -0 jboss-seam/src/main/org/jboss/seam/init/ComponentDescriptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ComponentDescriptor.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/init/ComponentDescriptor.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- ComponentDescriptor.java 16 Jul 2007 09:19:16 -0000 1.12
+++ ComponentDescriptor.java 16 Jul 2007 15:15:01 -0000 1.13
@@ -173,6 +173,10 @@
{
if (clazz.isAnnotationPresent(org.jboss.seam.annotations.web.Filter.class))
{
+ if ( !clazz.isAnnotationPresent(Startup.class) )
+ {
+ throw new IllegalStateException("@Filter components must also specify @Startup");
+ }
return true;
}
}
More information about the jboss-cvs-commits
mailing list