| java.lang.Object org.springframework.beans.factory.support.BeanDefinitionReaderUtils
Method Summary | |
public static AbstractBeanDefinition | createBeanDefinition(String className, String parent, ConstructorArgumentValues cargs, MutablePropertyValues pvs, ClassLoader classLoader) Create a new RootBeanDefinition or ChildBeanDefinition for the given
class name, parent, constructor arguments, and property values. | public static AbstractBeanDefinition | createBeanDefinition(String parent, String className, ClassLoader classLoader) Create a new RootBeanDefinition or ChildBeanDefinition for the given
class name, parent, constructor arguments, and property values. | public static String | generateBeanName(AbstractBeanDefinition beanDefinition, BeanDefinitionRegistry beanFactory, boolean isInnerBean) Generate a bean name for the given bean definition, unique within the
given bean factory. | public static String | generateBeanName(AbstractBeanDefinition beanDefinition, BeanDefinitionRegistry beanFactory) Generate a bean name for the given top-level bean definition,
unique within the given bean factory. | public static void | registerBeanDefinition(BeanDefinitionHolder bdHolder, BeanDefinitionRegistry beanFactory) Register the given bean definition with the given bean factory. | public static String | registerWithGeneratedName(AbstractBeanDefinition beanDefinition, BeanDefinitionRegistry beanFactory) Register the given bean definition with a generated name,
unique within the given bean factory. |
GENERATED_BEAN_NAME_SEPARATOR | final public static String GENERATED_BEAN_NAME_SEPARATOR(Code) | | Separator for generated bean names. If a class name or parent name is not
unique, "#1", "#2" etc will be appended, until the name becomes unique.
|
createBeanDefinition | public static AbstractBeanDefinition createBeanDefinition(String className, String parent, ConstructorArgumentValues cargs, MutablePropertyValues pvs, ClassLoader classLoader) throws ClassNotFoundException(Code) | | Create a new RootBeanDefinition or ChildBeanDefinition for the given
class name, parent, constructor arguments, and property values.
Parameters: className - the name of the bean class, if any Parameters: parent - the name of the parent bean, if any Parameters: cargs - the constructor arguments, if any Parameters: pvs - the property values, if any Parameters: classLoader - the ClassLoader to use for loading bean classes(can be null to just register bean classes by name) the bean definition throws: ClassNotFoundException - if the bean class could not be loaded See Also: BeanDefinitionReaderUtils.createBeanDefinition(String,String,ClassLoader) |
createBeanDefinition | public static AbstractBeanDefinition createBeanDefinition(String parent, String className, ClassLoader classLoader) throws ClassNotFoundException(Code) | | Create a new RootBeanDefinition or ChildBeanDefinition for the given
class name, parent, constructor arguments, and property values.
Parameters: parent - the name of the parent bean, if any Parameters: className - the name of the bean class, if any Parameters: classLoader - the ClassLoader to use for loading bean classes(can be null to just register bean classes by name) the bean definition throws: ClassNotFoundException - if the bean class could not be loaded |
generateBeanName | public static String generateBeanName(AbstractBeanDefinition beanDefinition, BeanDefinitionRegistry beanFactory, boolean isInnerBean) throws BeanDefinitionStoreException(Code) | | Generate a bean name for the given bean definition, unique within the
given bean factory.
Parameters: beanDefinition - the bean definition to generate a bean name for Parameters: beanFactory - the bean factory that the definition is going to beregistered with (to check for existing bean names) Parameters: isInnerBean - whether the given bean definition will be registeredas inner bean or as top-level bean (allowing for special name generationfor inner beans versus top-level beans) the generated bean name throws: BeanDefinitionStoreException - if no unique name can be generatedfor the given bean definition |
generateBeanName | public static String generateBeanName(AbstractBeanDefinition beanDefinition, BeanDefinitionRegistry beanFactory) throws BeanDefinitionStoreException(Code) | | Generate a bean name for the given top-level bean definition,
unique within the given bean factory.
Parameters: beanDefinition - the bean definition to generate a bean name for Parameters: beanFactory - the bean factory that the definition is going to beregistered with (to check for existing bean names) the generated bean name throws: BeanDefinitionStoreException - if no unique name can be generatedfor the given bean definition |
registerWithGeneratedName | public static String registerWithGeneratedName(AbstractBeanDefinition beanDefinition, BeanDefinitionRegistry beanFactory) throws BeanDefinitionStoreException(Code) | | Register the given bean definition with a generated name,
unique within the given bean factory.
Parameters: beanDefinition - the bean definition to generate a bean name for Parameters: beanFactory - the bean factory to register with the generated bean name throws: BeanDefinitionStoreException - if no unique name can be generatedfor the given bean definition or the definition cannot be registered |
|
|