|
35 | 35 |
|
36 | 36 | /**
|
37 | 37 | * BeanDefinitionParser implementation for the '{@code <lang:groovy/>}',
|
38 |
| - * '{@code <lang:jruby/>}' and '{@code <lang:bsh/>}' tags. |
| 38 | + * '{@code <lang:std/>}' and '{@code <lang:bsh/>}' tags. |
39 | 39 | * Allows for objects written using dynamic languages to be easily exposed with
|
40 | 40 | * the {@link org.springframework.beans.factory.BeanFactory}.
|
41 | 41 | *
|
42 |
| - * <p>The script for each object can be specified either as a reference to the Resource |
43 |
| - * containing it (using the '{@code script-source}' attribute) or inline in the XML configuration |
44 |
| - * itself (using the '{@code inline-script}' attribute. |
| 42 | + * <p>The script for each object can be specified either as a reference to the |
| 43 | + * resource containing it (using the '{@code script-source}' attribute) or inline |
| 44 | + * in the XML configuration itself (using the '{@code inline-script}' attribute. |
45 | 45 | *
|
46 |
| - * <p>By default, dynamic objects created with these tags are <strong>not</strong> refreshable. |
47 |
| - * To enable refreshing, specify the refresh check delay for each object (in milliseconds) using the |
48 |
| - * '{@code refresh-check-delay}' attribute. |
| 46 | + * <p>By default, dynamic objects created with these tags are <strong>not</strong> |
| 47 | + * refreshable. To enable refreshing, specify the refresh check delay for each |
| 48 | + * object (in milliseconds) using the '{@code refresh-check-delay}' attribute. |
49 | 49 | *
|
50 | 50 | * @author Rob Harrop
|
51 | 51 | * @author Rod Johnson
|
@@ -170,14 +170,13 @@ else if (beanDefinitionDefaults.getDestroyMethodName() != null) {
|
170 | 170 | // Attach any refresh metadata.
|
171 | 171 | String refreshCheckDelay = element.getAttribute(REFRESH_CHECK_DELAY_ATTRIBUTE);
|
172 | 172 | if (StringUtils.hasText(refreshCheckDelay)) {
|
173 |
| - bd.setAttribute(ScriptFactoryPostProcessor.REFRESH_CHECK_DELAY_ATTRIBUTE, new Long(refreshCheckDelay)); |
| 173 | + bd.setAttribute(ScriptFactoryPostProcessor.REFRESH_CHECK_DELAY_ATTRIBUTE, Long.valueOf(refreshCheckDelay)); |
174 | 174 | }
|
175 | 175 |
|
176 | 176 | // Attach any proxy target class metadata.
|
177 | 177 | String proxyTargetClass = element.getAttribute(PROXY_TARGET_CLASS_ATTRIBUTE);
|
178 | 178 | if (StringUtils.hasText(proxyTargetClass)) {
|
179 |
| - Boolean flag = new Boolean(proxyTargetClass); |
180 |
| - bd.setAttribute(ScriptFactoryPostProcessor.PROXY_TARGET_CLASS_ATTRIBUTE, flag); |
| 179 | + bd.setAttribute(ScriptFactoryPostProcessor.PROXY_TARGET_CLASS_ATTRIBUTE, Boolean.valueOf(proxyTargetClass)); |
181 | 180 | }
|
182 | 181 |
|
183 | 182 | // Add constructor arguments.
|
|
0 commit comments