Package org.hawaiiframework.async.config
Class BeanRegistrar
java.lang.Object
org.hawaiiframework.async.config.BeanRegistrar
Utility to add beans to Spring's bean definition registry.
- Since:
- 3.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionBeanRegistrar(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterBean(String beanName, Class<?> clazz) Create aGenericBeanDefinitionof the specified class and register it with the registry.voidregisterBean(String beanName, Class<?> clazz, org.springframework.beans.factory.config.ConstructorArgumentValues constructorArgumentValues) Create aGenericBeanDefinitionof the specified class and register it with the registry.
-
Constructor Details
-
BeanRegistrar
public BeanRegistrar(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) The constructor.- Parameters:
registry- Spring's bean definition registry.
-
-
Method Details
-
registerBean
Create aGenericBeanDefinitionof the specified class and register it with the registry.- Parameters:
beanName- the bean nameclazz- the bean class
-
registerBean
public void registerBean(String beanName, Class<?> clazz, @Nullable org.springframework.beans.factory.config.ConstructorArgumentValues constructorArgumentValues) Create aGenericBeanDefinitionof the specified class and register it with the registry.- Parameters:
beanName- the bean nameclazz- the bean classconstructorArgumentValues- the constructor arguments.
-