Package io.beanmapper.core.constructor
Interface BeanInitializer
- All Known Implementing Classes:
DefaultBeanInitializer
public interface BeanInitializer
Abstraction that initializes beans.
-
Method Summary
Modifier and TypeMethodDescription<T> T
instantiate
(Class<T> beanClass, ConstructorArguments arguments) Initialize a new bean.
-
Method Details
-
instantiate
Initialize a new bean.- Type Parameters:
T
- type of the class to instantiate- Parameters:
beanClass
- the bean classarguments
- object containing types and values necessary for constructing using bean construct- Returns:
- the initialized bean
-