| java.lang.Object org.springframework.beans.factory.support.BeanDefinitionReaderUtils
Method Summary | |
public static AbstractBeanDefinition | createBeanDefinition(String className, String parentName, ConstructorArgumentValues cargs, MutablePropertyValues pvs, ClassLoader classLoader) Create a new GenericBeanDefinition for the given
class name, parent, constructor arguments, and property values. | public static AbstractBeanDefinition | createBeanDefinition(String parentName, String className, ClassLoader classLoader) Create a new GenericBeanDefinition for the given parent name and class name,
eagerly loading the bean class if a ClassLoader has been specified. | public static String | generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry, boolean isInnerBean) Generate a bean name for the given bean definition, unique within the
given bean factory. | public static String | generateBeanName(BeanDefinition beanDefinition, BeanDefinitionRegistry registry) Generate a bean name for the given top-level bean definition,
unique within the given bean factory. | public static void | registerBeanDefinition(BeanDefinitionHolder definitionHolder, BeanDefinitionRegistry registry) Register the given bean definition with the given bean factory. | public static String | registerWithGeneratedName(AbstractBeanDefinition definition, BeanDefinitionRegistry registry) 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 parentName, ConstructorArgumentValues cargs, MutablePropertyValues pvs, ClassLoader classLoader) throws ClassNotFoundException(Code) | | Create a new GenericBeanDefinition for the given
class name, parent, constructor arguments, and property values.
Parameters: className - the name of the bean class, if any Parameters: parentName - 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 parentName, String className, ClassLoader classLoader) throws ClassNotFoundException(Code) | | Create a new GenericBeanDefinition for the given parent name and class name,
eagerly loading the bean class if a ClassLoader has been specified.
Parameters: parentName - 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(BeanDefinition definition, BeanDefinitionRegistry registry, boolean isInnerBean) throws BeanDefinitionStoreException(Code) | | Generate a bean name for the given bean definition, unique within the
given bean factory.
Parameters: definition - the bean definition to generate a bean name for Parameters: registry - 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(BeanDefinition beanDefinition, BeanDefinitionRegistry registry) 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: registry - 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 definition, BeanDefinitionRegistry registry) throws BeanDefinitionStoreException(Code) | | Register the given bean definition with a generated name,
unique within the given bean factory.
Parameters: definition - the bean definition to generate a bean name for Parameters: registry - 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 |
|
|