public class SpringRegistryBootstrap extends AbstractRegistryBootstrap implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ApplicationContextAware
discoverer, logger, muleContext, OBJECT_KEY, SINGLE_TX, supportedArtifactType, TRANSFORMER_KEY
PHASE_NAME
Constructor and Description |
---|
SpringRegistryBootstrap() |
Modifier and Type | Method and Description |
---|---|
protected void |
doRegisterObject(String key,
String className,
boolean optional) |
protected void |
doRegisterTransformer(String name,
Class<?> returnClass,
Class<? extends Transformer> transformerClass,
String mime,
boolean optional) |
protected OptionalObjectsController |
getOptionalObjectsController() |
void |
initialise()
TODO Optimize me! MULE-9343
Method used to perform any initialisation work.
|
protected void |
registerTransformers() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
getClass, setMuleContext, setSupportedArtifactType
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void initialise() throws InitialisationException
AbstractRegistryBootstrap
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
initialise
in class AbstractRegistryBootstrap
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered fromprotected void registerTransformers() throws MuleException
registerTransformers
in class AbstractRegistryBootstrap
MuleException
protected void doRegisterTransformer(String name, Class<?> returnClass, Class<? extends Transformer> transformerClass, String mime, boolean optional) throws Exception
doRegisterTransformer
in class AbstractRegistryBootstrap
Exception
protected void doRegisterObject(String key, String className, boolean optional) throws Exception
doRegisterObject
in class AbstractRegistryBootstrap
Exception
protected OptionalObjectsController getOptionalObjectsController()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.