Issue 1:
Christian Nelson opened SPR-3198 and commented

Note: There are a number of already existing related issues, but none seemed to address this one specific improvement: create companion javadoc and source archives for every spring jar, including module jars, and make them available via maven.

One of the benefits to using maven is the automatic downloading and configuration of source and javadoc for a specific library. This can be done directly from maven (e.g. mvn idea:idea or mvn eclipse:eclipse) or through an IDE plugin (e.g. Maven Reloaded). When it works, it's really quite nice and brings us a step closer to an ideal development environment.

Currently, the javadoc and source archives are created and made available only for the mondo, all-encompassing spring.jar. In this case, auto-fetching and configuration of source and javadoc works great. One could even say it works awesome.

Unfortunately, we're only using a subset of spring and we explicitly list our dependencies on each module. In this case, there aren't any javadoc or source modules to be associated with the class jars. It would be fantastic if spring also provided these for those of us who only require a small subset of spring and would like to leverage maven's ability to auto-fetch and configure these.

With future versions of spring, is it possible to include the associated javadoc and source archies for all of the spring jars, including the seperate module jars?

Christian

Affects: 2.0.2

Issue Links:

#7392 Create and upload Maven Source and Javadoc Bundles for Spring 2.0 ("duplicates")

9 votes, 5 watchers

Issue 2:
Vitaliy Morarian opened SPR-5854 and commented

I have an abstract bean which used as a template. This bean has scope=prototype. Children declarations are real beans which are injected (as method lookup).

The problem is, that this scope=prototype is ignore (beans are created only once). Found solution -- declare scope=prototype for each 'real' bean.

<bean id="reportingService" class="com.uwiss.hr.service.impl.ReportingServiceImpl">
<property name="asyncTaskManager" ref="asyncTaskManager"/>
<property name="projectBO" ref="projectBO"/>
<property name="context" ref="asyncTaskContext"/>
<!-- lookups -->
<lookup-method name="createEmployeeReportTask" bean="employeeReportTask"/>
<lookup-method name="createSummaryEmployeeReportTask" bean="summaryEmployeeReportTask"/>
<lookup-method name="createEmployeeAllDetailReportTask" bean="employeeAllDetailReportTask"/>
<lookup-method name="createProjectReportTask" bean="projectReportTask"/>
<lookup-method name="createProjectDetailReportTask" bean="projectDetailReportTask"/>
<lookup-method name="createProjectAllDetailReportTask" bean="projectAllDetailReportTask"/>
<lookup-method name="createAllBankDataInfoCallableTask" bean="allBankDataInfoCallableTask"/>
<lookup-method name="createInvoiceReportCallableTask" bean="invoiceReportCallableTask"/>
</bean>

<!-- template -->
<bean id="jasperReportJDBCTaskGeneric" class="com.uwiss.jenive.asynctask.server.AbstractJasperReportJDBCCallableTask" scope="prototype" abstract="true">
<property name="dataSource" ref="dataSource"/>
<property name="cacheBaseDirectory" value="${jasper.cache.location}"/>
<property name="resultProcessor" ref="asyncTaskProgressableUrlCreator"/>
<property name="fileResolver">
<bean class="com.uwiss.hr.RuntimeCompilationFileResolver">
<constructor-arg>
<list>
<value>classpath:/fonts/</value>
<value>classpath:/com/uwiss/hr/report/</value>
</list>
</constructor-arg>
<property name="cacheBaseDirectory" value="${jasper.cache.location}"/>
</bean>
</property>
</bean>

<!-- real beans: have to declare scope=target as a workaround -->
<bean id="allBankDataInfoCallableTask" class="com.uwiss.hr.service.async.report.AllBankDataInfoCallableTask" scope="prototype" parent="jasperReportJDBCTaskGeneric">
<property name="reportLocation" value="classpath:/com/uwiss/hr/report/AllBankDataInfo.jrxml"/>
<property name="employeeBO" ref="employeeBO"/>
</bean>

Affects: 2.5.6

Issue Links:

#8225 scope (& similar attributes) on abstract beans should be inherited in child beans, or not permitted ("duplicates")