Class BeanFactoryManager

    • Field Detail

      • INSTANCE

        public static final BeanFactory INSTANCE
        The singleton instance.
    • Method Detail

      • create

        public <B extends WritableBean> B create​(Class<B> type,
                                                 boolean dynamic)
        Specified by:
        create in interface BeanFactory
        Type Parameters:
        B - type of the WritableBean.
        Parameters:
        type - the Class reflecting the WritableBean.
        dynamic - the dynamic flag.
        Returns:
        a new instance of the WritableBean specified by the given Class. If type is an interface, a dynamic proxy implementation is generated. Otherwise if a class is given it needs to extend Bean, be non-abstract and requires a non-arg constructor.