public class SpringMuleContextServiceConfigurator extends Object
MuleContext.
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.
| Constructor and Description |
|---|
SpringMuleContextServiceConfigurator(MuleContextWithRegistry muleContext,
MuleFunctionsBindingContextProvider coreFunctionsProvider,
org.mule.runtime.api.component.ConfigurationProperties configurationProperties,
Map<String,String> artifactProperties,
boolean addToolingObjectsToRegistry,
ArtifactType artifactType,
org.mule.runtime.ast.api.ArtifactAst artifactAst,
OptionalObjectsController optionalObjectsController,
org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry,
org.mule.runtime.api.artifact.Registry serviceLocator,
org.mule.runtime.api.util.ResourceLocator resourceLocator,
org.mule.runtime.api.memory.management.MemoryManagementService memoryManagementService) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
containsBeanDefinition(String beanName) |
protected void |
createArtifactServices() |
protected void |
createBootstrapBeanDefinitions() |
protected Map<String,String> |
getArtifactProperties() |
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.memory.management.MemoryManagementService |
getMemoryManagementService() |
protected MuleContextWithRegistry |
getMuleContext() |
protected org.mule.runtime.api.artifact.Registry |
getServiceLocator() |
protected boolean |
isAddToolingObjectsToRegistry() |
protected boolean |
isServiceRuntimeProvided(CustomService customService) |
protected void |
registerBeanDefinition(String serviceId,
org.springframework.beans.factory.config.BeanDefinition beanDefinition) |
protected void |
registerConstantBeanDefinition(String serviceId,
Object impl) |
public SpringMuleContextServiceConfigurator(MuleContextWithRegistry muleContext, MuleFunctionsBindingContextProvider coreFunctionsProvider, org.mule.runtime.api.component.ConfigurationProperties configurationProperties, Map<String,String> artifactProperties, boolean addToolingObjectsToRegistry, ArtifactType artifactType, org.mule.runtime.ast.api.ArtifactAst artifactAst, OptionalObjectsController optionalObjectsController, org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry, org.mule.runtime.api.artifact.Registry serviceLocator, org.mule.runtime.api.util.ResourceLocator resourceLocator, org.mule.runtime.api.memory.management.MemoryManagementService memoryManagementService)
protected void createArtifactServices()
protected void createBootstrapBeanDefinitions()
protected MuleContextWithRegistry getMuleContext()
protected boolean isAddToolingObjectsToRegistry()
protected org.mule.runtime.api.memory.management.MemoryManagementService getMemoryManagementService()
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.