Revision: 1080
          http://stripes.svn.sourceforge.net/stripes/?rev=1080&view=rev
Author:   bengunter
Date:     2009-03-01 07:50:01 +0000 (Sun, 01 Mar 2009)

Log Message:
-----------
Fixed STS-654: Don't autoload ActionBeans marked with @DontAutoload

Modified Paths:
--------------
    
trunk/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java

Modified: 
trunk/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
===================================================================
--- 
trunk/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
      2009-03-01 04:12:19 UTC (rev 1079)
+++ 
trunk/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
      2009-03-01 07:50:01 UTC (rev 1080)
@@ -21,6 +21,7 @@
 import net.sourceforge.stripes.action.SessionScope;
 import net.sourceforge.stripes.config.BootstrapPropertyResolver;
 import net.sourceforge.stripes.config.Configuration;
+import net.sourceforge.stripes.config.DontAutoLoad;
 import net.sourceforge.stripes.exception.ActionBeanNotFoundException;
 import net.sourceforge.stripes.exception.StripesRuntimeException;
 import net.sourceforge.stripes.exception.StripesServletException;
@@ -133,7 +134,7 @@
      */
     protected void addActionBean(Class<? extends ActionBean> clazz) {
         // Ignore abstract classes
-        if (Modifier.isAbstract(clazz.getModifiers()))
+        if (Modifier.isAbstract(clazz.getModifiers()) || 
clazz.isAnnotationPresent(DontAutoLoad.class))
             return;
 
         String binding = getUrlBinding(clazz);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to