public class BaseSpringMuleContextServiceConfigurator extends Object
MuleContext that are independent of the artifact config.
There's a predefined set of services plus a configurable set of services provided by
MuleContext#getCustomizationService.
This class takes cares of registering bean definitions for each of the provided services so dependency injection can be
properly done through the use of Inject.
| Modifier and Type | Field and Description |
|---|---|
static String |
DISABLE_TRANSFORMERS_SUPPORT
Deprecated.
|
| Constructor and Description |
|---|
BaseSpringMuleContextServiceConfigurator(MuleContext muleContext,
org.mule.runtime.api.component.ConfigurationProperties configurationProperties,
ArtifactType artifactType,
OptionalObjectsController optionalObjectsController,
org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry,
org.mule.runtime.api.artifact.Registry serviceLocator,
Registry originalRegistry,
boolean enableLazyInit) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
containsBeanDefinition(String beanName) |
protected void |
createBootstrapBeanDefinitions() |
protected static org.springframework.beans.factory.config.BeanDefinition |
getBeanDefinition(Class<?> beanType) |
protected static org.springframework.beans.factory.support.BeanDefinitionBuilder |
getBeanDefinitionBuilder(Class<?> beanType) |
protected org.springframework.beans.factory.support.BeanDefinitionRegistry |
getBeanDefinitionRegistry() |
protected static org.springframework.beans.factory.config.BeanDefinition |
getConstantObjectBeanDefinition(Object impl) |
protected org.springframework.beans.factory.config.BeanDefinition |
getCustomServiceBeanDefinition(CustomService customService,
String serviceId)
Determine the best way to create a bean definition from a custom service, depending on:
Whether the class or an implementation of a service has been configured.
Whether the service is actually custom or is one provided by the runtime.
In the case of services provided by the runtime, make those be initialized lazily.
|
protected CustomServiceRegistry |
getCustomServiceRegistry() |
protected static org.springframework.beans.factory.config.BeanDefinition |
getFixedTypeConstantObjectBeanDefinition(Object object,
Class<?> type) |
protected org.mule.runtime.api.artifact.Registry |
getServiceLocator() |
protected boolean |
isServiceRuntimeProvided(CustomService customService) |
protected void |
registerBeanDefinition(String serviceId,
org.springframework.beans.factory.config.BeanDefinition beanDefinition) |
protected void |
registerConstantBeanDefinition(String serviceId,
Object impl) |
@Deprecated public static final String DISABLE_TRANSFORMERS_SUPPORT
public BaseSpringMuleContextServiceConfigurator(MuleContext muleContext, org.mule.runtime.api.component.ConfigurationProperties configurationProperties, ArtifactType artifactType, OptionalObjectsController optionalObjectsController, org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry, org.mule.runtime.api.artifact.Registry serviceLocator, Registry originalRegistry, boolean enableLazyInit)
protected void createBootstrapBeanDefinitions()
protected static org.springframework.beans.factory.config.BeanDefinition getBeanDefinition(Class<?> beanType)
protected void registerConstantBeanDefinition(String serviceId, Object impl)
protected void registerBeanDefinition(String serviceId, org.springframework.beans.factory.config.BeanDefinition beanDefinition)
protected boolean isServiceRuntimeProvided(CustomService customService)
protected org.springframework.beans.factory.config.BeanDefinition getCustomServiceBeanDefinition(CustomService customService, String serviceId)
protected static org.springframework.beans.factory.config.BeanDefinition getConstantObjectBeanDefinition(Object impl)
protected static org.springframework.beans.factory.config.BeanDefinition getFixedTypeConstantObjectBeanDefinition(Object object, Class<?> type)
protected static org.springframework.beans.factory.support.BeanDefinitionBuilder getBeanDefinitionBuilder(Class<?> beanType)
protected boolean containsBeanDefinition(String beanName)
protected CustomServiceRegistry getCustomServiceRegistry()
protected org.springframework.beans.factory.support.BeanDefinitionRegistry getBeanDefinitionRegistry()
protected org.mule.runtime.api.artifact.Registry getServiceLocator()
Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.