| Constructor and Description |
|---|
PopulatedBeanFactory(BeanInformation beanInformation,
FactoryLookupStrategy factoryLookupStrategy,
Configuration configuration)
Construct a new Factory that creates object instances based on provided BeanInformation, assigning each instance
different field values.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
create()
Create a new instance of the Bean described in the provided BeanInformation.
|
public PopulatedBeanFactory(BeanInformation beanInformation, FactoryLookupStrategy factoryLookupStrategy, Configuration configuration) throws IllegalArgumentException
beanInformation - Information used to create instances of a bean.factoryLookupStrategy - Provides a means of acquiring Factories that can be used to create values for the fields of new object
instances.IllegalArgumentException - If either the specified BeanInformation or the FactoryLookupStrategy is deemed illegal. For example,
if either is null.public Object create() throws BeanCreationException
create in interface Factory<Object>BeanCreationException - If an error occurs when creating an instance of the Bean.Copyright © 2010–2020 meanbean. All rights reserved.