Skip to content

Commit e8335c9

Browse files
committed
Update Javadoc for LazyInitTargetSourceCreator
See gh-24915
1 parent c6e2a5e commit e8335c9

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/target/LazyInitTargetSourceCreator.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,30 +23,32 @@
2323
import org.springframework.lang.Nullable;
2424

2525
/**
26-
* TargetSourceCreator that enforces a LazyInitTargetSource for each bean
27-
* that is defined as "lazy-init". This will lead to a proxy created for
28-
* each of those beans, allowing to fetch a reference to such a bean
29-
* without actually initializing the target bean instance.
26+
* {@code TargetSourceCreator} that enforces a {@link LazyInitTargetSource} for
27+
* each bean that is defined as "lazy-init". This will lead to a proxy created for
28+
* each of those beans, allowing to fetch a reference to such a bean without
29+
* actually initializing the target bean instance.
3030
*
31-
* <p>To be registered as custom TargetSourceCreator for an auto-proxy creator,
32-
* in combination with custom interceptors for specific beans or for the
33-
* creation of lazy-init proxies only. For example, as autodetected
31+
* <p>To be registered as custom {@code TargetSourceCreator} for an auto-proxy
32+
* creator, in combination with custom interceptors for specific beans or for the
33+
* creation of lazy-init proxies only. For example, as an autodetected
3434
* infrastructure bean in an XML application context definition:
3535
*
3636
* <pre class="code">
3737
* &lt;bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"&gt;
38+
* &lt;property name="beanNames" value="*" /&gt; &lt;!-- apply to all beans --&gt;
3839
* &lt;property name="customTargetSourceCreators"&gt;
3940
* &lt;list&gt;
40-
* &lt;bean class="org.springframework.aop.framework.autoproxy.target.LazyInitTargetSourceCreator"/&gt;
41+
* &lt;bean class="org.springframework.aop.framework.autoproxy.target.LazyInitTargetSourceCreator" /&gt;
4142
* &lt;/list&gt;
4243
* &lt;/property&gt;
4344
* &lt;/bean&gt;
4445
*
4546
* &lt;bean id="myLazyInitBean" class="mypackage.MyBeanClass" lazy-init="true"&gt;
46-
* ...
47+
* &lt;!-- ... --&gt;
4748
* &lt;/bean&gt;</pre>
4849
*
4950
* @author Juergen Hoeller
51+
* @author Sam Brannen
5052
* @since 1.2
5153
* @see org.springframework.beans.factory.config.BeanDefinition#isLazyInit
5254
* @see org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator#setCustomTargetSourceCreators

0 commit comments

Comments
 (0)