public class SpringRegistryBootstrap extends AbstractRegistryBootstrap implements org.mule.runtime.api.lifecycle.Initialisable
AbstractRegistryBootstrap which instead of registering the objects directly into a Registry,
generates BeanDefinitions into a BeanDefinitionRegistry so that the Spring framework can create those objects
when initialising an ApplicationContext}artifactType, BINDING_PROVIDER_PREDICATE, logger, muleContext, OBJECT_KEY, SINGLE_TX, TRANSFORMER_KEY, TRANSFORMER_PREDICATE| Constructor and Description |
|---|
SpringRegistryBootstrap(ArtifactType artifactType,
MuleContext muleContext,
OptionalObjectsController optionalObjectsController,
BiConsumer<String,org.springframework.beans.factory.config.BeanDefinition> beanDefinitionRegister,
Predicate<String> propertyKeyfilter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRegisterObject(ObjectBootstrapProperty bootstrapProperty) |
protected void |
doRegisterTransformer(TransformerBootstrapProperty bootstrapProperty,
Class<?> returnClass,
Class<? extends Transformer> transformerClass) |
initialiseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultRegistryBoostrappublic SpringRegistryBootstrap(ArtifactType artifactType, MuleContext muleContext, OptionalObjectsController optionalObjectsController, BiConsumer<String,org.springframework.beans.factory.config.BeanDefinition> beanDefinitionRegister, Predicate<String> propertyKeyfilter)
artifactType - type of artifact. Bootstrap entries may be associated to an specific type of artifact. If
it's not associated to the related artifact it will be ignored.muleContext - the MuleContext of the artifact.optionalObjectsController - a controller for objects that may be optional. When an object can be optional and mule it's
not able to create it, then it gets ignored.beanDefinitionRegister - a BiConsumer on which the bean definitions are registeredprotected void doRegisterTransformer(TransformerBootstrapProperty bootstrapProperty, Class<?> returnClass, Class<? extends Transformer> transformerClass) throws Exception
doRegisterTransformer in class AbstractRegistryBootstrapExceptionprotected void doRegisterObject(ObjectBootstrapProperty bootstrapProperty) throws Exception
doRegisterObject in class AbstractRegistryBootstrapExceptionCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.