Browse Source

polishing

pull/23217/head
Juergen Hoeller 15 years ago
parent
commit
b2129577b9
  1. 2
      org.springframework.beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java
  2. 2
      org.springframework.beans/src/main/java/org/springframework/beans/factory/support/RootBeanDefinition.java

2
org.springframework.beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java

@ -205,7 +205,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp @@ -205,7 +205,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
* @return an instance of the bean
* @throws BeansException if the bean could not be created
*/
public <T> T getBean(String name, Class<T> requiredType, Object[] args) throws BeansException {
public <T> T getBean(String name, Class<T> requiredType, Object... args) throws BeansException {
return doGetBean(name, requiredType, args, false);
}

2
org.springframework.beans/src/main/java/org/springframework/beans/factory/support/RootBeanDefinition.java

@ -120,6 +120,7 @@ public class RootBeanDefinition extends AbstractBeanDefinition { @@ -120,6 +120,7 @@ public class RootBeanDefinition extends AbstractBeanDefinition {
* @param autowireMode by name or type, using the constants in this interface
* @deprecated as of Spring 3.0, in favor of {@link #setAutowireMode} usage
*/
@Deprecated
public RootBeanDefinition(Class beanClass, int autowireMode) {
super();
setBeanClass(beanClass);
@ -150,6 +151,7 @@ public class RootBeanDefinition extends AbstractBeanDefinition { @@ -150,6 +151,7 @@ public class RootBeanDefinition extends AbstractBeanDefinition {
* @param pvs the property values to apply
* @deprecated as of Spring 3.0, in favor of {@link #getPropertyValues} usage
*/
@Deprecated
public RootBeanDefinition(Class beanClass, MutablePropertyValues pvs) {
super(null, pvs);
setBeanClass(beanClass);

Loading…
Cancel
Save