接口 BeanInstanceProducer

  • 所有已知实现类:
    FallbackBeanInstanceProducer

    public interface BeanInstanceProducer
    Contract for producing a bean instance
    作者:
    Steve Ebersole
    • 方法详细资料

      • produceBeanInstance

        <B> B produceBeanInstance​(Class<B> beanType)
        Produce a bean instance
        参数:
        beanType - The Java type of bean to produce
      • produceBeanInstance

        <B> B produceBeanInstance​(String name,
                                  Class<B> beanType)
        Produce a named bean instance
        参数:
        name - The bean name
        beanType - The Java type that the produced bean should be typed as