+ Added isCglibClassName() to AopUtils for checking bean class names before classloading

+ Added tests for @Aspect support in @Configuration classes
+ Added tests for @Inherited @Configuration behavior
This commit is contained in:
Chris Beams
2009-03-23 03:59:07 +00:00
parent c9ab18e7e7
commit b8f712621d
12 changed files with 250 additions and 37 deletions

View File

@@ -86,7 +86,15 @@ public abstract class AopUtils {
* @param clazz the class to check
*/
public static boolean isCglibProxyClass(Class clazz) {
return (clazz != null && clazz.getName().contains(ClassUtils.CGLIB_CLASS_SEPARATOR));
return (clazz != null && isCglibProxyClassName(clazz.getName()));
}
/**
* Check whether the specified class name is a CGLIB-generated class.
* @param className the class name to check
*/
public static boolean isCglibProxyClassName(String className) {
return (className != null && className.contains(ClassUtils.CGLIB_CLASS_SEPARATOR));
}
/**