polishing

This commit is contained in:
Juergen Hoeller 2009-10-13 22:48:25 +00:00
parent cfa7216fac
commit b2129577b9
2 changed files with 3 additions and 1 deletions

View File

@ -205,7 +205,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
* @return an instance of the bean * @return an instance of the bean
* @throws BeansException if the bean could not be created * @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); return doGetBean(name, requiredType, args, false);
} }

View File

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