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
  • Constructor Summary

    Constructors
    Constructor
    Description
    BeanRegistrar(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    registerBean(String beanName, Class<?> clazz)
    Create a GenericBeanDefinition of the specified class and register it with the registry.
    void
    registerBean(String beanName, Class<?> clazz, org.springframework.beans.factory.config.ConstructorArgumentValues constructorArgumentValues)
    Create a GenericBeanDefinition of the specified class and register it with the registry.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BeanRegistrar

      public BeanRegistrar(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
      The constructor.
      Parameters:
      registry - Spring's bean definition registry.
  • Method Details

    • registerBean

      public void registerBean(String beanName, Class<?> clazz)
      Create a GenericBeanDefinition of the specified class and register it with the registry.
      Parameters:
      beanName - the bean name
      clazz - the bean class
    • registerBean

      public void registerBean(String beanName, Class<?> clazz, @Nullable org.springframework.beans.factory.config.ConstructorArgumentValues constructorArgumentValues)
      Create a GenericBeanDefinition of the specified class and register it with the registry.
      Parameters:
      beanName - the bean name
      clazz - the bean class
      constructorArgumentValues - the constructor arguments.