Package org.hawaiiframework.async.config
Class BeanRegistrar
- java.lang.Object
-
- org.hawaiiframework.async.config.BeanRegistrar
-
public class BeanRegistrar extends Object
Utility to add beans to Spring's bean definition registry.- Since:
- 3.0.0
- Author:
- Rutger Lubbers, Paul Klos
-
-
Constructor Summary
Constructors Constructor Description BeanRegistrar(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
registerBean(String beanName, Class<?> clazz)
Create aGenericBeanDefinition
of the specified class and register it with the registry.void
registerBean(String beanName, Class<?> clazz, org.springframework.beans.factory.config.ConstructorArgumentValues constructorArgumentValues)
Create aGenericBeanDefinition
of the specified class and register it with the registry.
-
-
-
Method Detail
-
registerBean
public void registerBean(String beanName, Class<?> clazz)
Create aGenericBeanDefinition
of 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 aGenericBeanDefinition
of the specified class and register it with the registry.- Parameters:
beanName
- the bean nameclazz
- the bean classconstructorArgumentValues
- the constructor arguments.
-
-