Skip to content

Callback interfaces such as LoadTimeWeaverAware should allow for local overriding [SPR-13892] #18466

Closed
@spring-projects-issues

Description

@spring-projects-issues

Andrei Ivanov opened SPR-13892 and commented

Trying to inject a custom LoadTimeWeaver into a LoadTimeWeaverAware fails, as it initially gets injected but then the LoadTimeWeaverAwareProcessor comes along and injects the default loadTimeWeaver.

<context:load-time-weaver />

<bean class="org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager">
	<property name="defaultPersistenceUnitName" value="compositePU" />
	<property name="packagesToScan">
		<list>
			<value>com.test.module1.entity</value>
			<value>com.test.module2.entity</value>
		</list>
	</property>
	<property name="properties">
		<props>
			<prop key="eclipselink.composite-unit">true</prop>
		</props>
	</property>
	<property name="loadTimeWeaver">
		<bean class="CustomLoadTimeWeaver" />
	</property>
</bean>

Affects: 4.2.4

Issue Links:

0 votes, 5 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: bulk-closedAn outdated, unresolved issue that's closed in bulk as part of a cleaning process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions