polishing
This commit is contained in:
parent
cfa7216fac
commit
b2129577b9
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
|||
* @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…
Reference in New Issue