Is there a way to tell spring about the classes I would like it to look at the annotations for without using XML or having it search the classloader? I would like to get the performance of XML based spring ACs without having to use XML for the configuration of the beans themselves.
Is there a middle ground somewhere?
I am using Spring 2.5.5 and currently have an applicationContext.xml like so currently:
Code:<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"> <!-- NOTE: I am not convinced this is a good idea --> <context:annotation-config /> <context:component-scan base-package="org.dspace" name-generator="org.dspace.servicemanager.spring.FullPathBeanNameGenerator" /> </bean>


Reply With Quote
