Browse Source

Retrieve bean from parent bean factory if not found, as per http://forum.springframework.org/viewtopic.php?t=3005.

1.0.x
Ben Alex 22 years ago
parent
commit
cc669f4e35
  1. 5
      core/src/main/java/org/acegisecurity/util/FilterToBeanProxy.java

5
core/src/main/java/org/acegisecurity/util/FilterToBeanProxy.java

@ -15,6 +15,8 @@ @@ -15,6 +15,8 @@
package net.sf.acegisecurity.util;
import org.springframework.beans.factory.BeanFactoryUtils;
import org.springframework.context.ApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
@ -167,7 +169,8 @@ public class FilterToBeanProxy implements Filter { @@ -167,7 +169,8 @@ public class FilterToBeanProxy implements Filter {
+ " not found in classloader");
}
Map beans = ctx.getBeansOfType(targetClass, true, true);
Map beans = BeanFactoryUtils.beansOfTypeIncludingAncestors(ctx,
targetClass, true, true);
if (beans.size() == 0) {
throw new ServletException(

Loading…
Cancel
Save