public interface FactoryLookupStrategy
| Modifier and Type | Method and Description |
|---|---|
Factory<?> |
getFactory(BeanInformation beanInformation,
PropertyInformation propertyInformation,
Configuration configuration)
Get a factory for the specified property that is of the specified type.
|
static FactoryLookupStrategy |
getInstance() |
static ServiceDefinition<FactoryLookupStrategy> |
getServiceDefinition() |
Factory<?> getFactory(BeanInformation beanInformation, PropertyInformation propertyInformation, Configuration configuration) throws IllegalArgumentException, BeanTestException
Get a factory for the specified property that is of the specified type.
If ultimately a suitable Factory cannot be found or created, a NoSuchFactoryException detailing the problem is thrown.
beanInformation - Information about the bean the property belongs to.propertyInformation - Information about the property.configuration - An optional Configuration object that may contain an override Factory for the specified property. Pass
null if no Configuration exists.IllegalArgumentException - If any of the required parameters are deemed illegal. For example, if any are null.NoSuchFactoryException - If an unexpected exception occurs when getting the Factory, including failing to find a suitable
Factory.BeanTestExceptionstatic ServiceDefinition<FactoryLookupStrategy> getServiceDefinition()
static FactoryLookupStrategy getInstance()
Copyright © 2010–2020 meanbean. All rights reserved.