AOP based object activation fails for class name starting in lower case

I am doing object injection using AOP. There is a class that starts with samllcase (testClass) in which no object is injected.

I converted the filename (inherited class) to start with the capital case (TestClass) and updated references in the AOP.xml and spring-beans.xml containing the bean definitions, and it started with work as intended.

My question is, is there a specification in Spring / AOP to have class names to start with the capital case? Any link would be appreciated.

Or am I missing something?

+2


source to share


1 answer


It's a long shot, but do you use annotations at all? When using annotations (like @Component), the bean bean generated from the annotation is the class name with a lowercase first letter. It is possible that what is happening is that the AOP handling does the opposite of this for going from the bean id to the class name, so with the first line of the first class of the class, this converse will not work.



0


source







All Articles