java.lang.Object
io.github.mmm.bean.impl.BeanFactoryManager
- All Implemented Interfaces:
BeanFactory
Implementation of
BeanFactory.-
Field Details
-
INSTANCE
The singleton instance.
-
-
Method Details
-
create
- Specified by:
createin interfaceBeanFactory- Type Parameters:
B- type of theWritableBean.- Parameters:
type- theClassreflecting theWritableBean.beanClass- theBeanClassthat has to correspond to theClassgiven by parametertype.- Returns:
- a new instance of the
WritableBeanspecified by the givenClass. Iftypeis an interface, a dynamic proxy implementation is generated. Otherwise if a class is given it needs to extendBean, be non-abstract and requires a non-arg constructor.
-