public class ObjectFactoryClassRepository extends Object
FactoryBean from an
ObjectFactory. This is done because we need dependency injection and instrospection done over the ObjectFactory
without the user knowing about it.
The created FactoryBean is the one that receives the injection of fields declared by
the ObjectFactory. It also provides information about the instance type that is creating since it's used to know the
order in which beans must be initialised based on the dependencies between them.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ObjectFactoryClassRepository.IsEagerInitGetterInterceptor |
static interface |
ObjectFactoryClassRepository.SmartFactoryBeanInterceptor
This interface is used to implement the getters and setters of the fields added with Byte Buddy.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
IS_EAGER_INIT |
static String |
IS_PROTOTYPE |
static String |
IS_SINGLETON |
static String |
OBJECT_TYPE_CLASS |
| Constructor and Description |
|---|
ObjectFactoryClassRepository() |
| Modifier and Type | Method and Description |
|---|---|
Class<org.mule.runtime.dsl.api.component.ObjectFactory> |
getObjectFactoryClass(Class objectFactoryType)
|
Class<org.mule.runtime.dsl.api.component.ObjectFactory> |
getObjectFactoryDynamicClass(org.mule.runtime.dsl.api.component.ComponentBuildingDefinition componentBuildingDefinition,
Class objectFactoryType,
Class createdObjectType,
Supplier<Boolean> isLazyInitFunction)
Deprecated.
|
public static final String IS_SINGLETON
public static final String OBJECT_TYPE_CLASS
public static final String IS_PROTOTYPE
public static final String IS_EAGER_INIT
public Class<org.mule.runtime.dsl.api.component.ObjectFactory> getObjectFactoryClass(Class objectFactoryType)
Class for the ObjectFactory defined by the objectFactoryType parameter. Once acquired the
Class instance should not be reused for another ComponentBuildingDefinition.objectFactoryType - the ObjectFactory of the componentFactoryBean class to be used by spring for the provided configuration.@Deprecated public Class<org.mule.runtime.dsl.api.component.ObjectFactory> getObjectFactoryDynamicClass(org.mule.runtime.dsl.api.component.ComponentBuildingDefinition componentBuildingDefinition, Class objectFactoryType, Class createdObjectType, Supplier<Boolean> isLazyInitFunction)
Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.