public abstract class AbstractSagaManagerBeanDefinitionParser extends Object
Constructor and Description |
---|
AbstractSagaManagerBeanDefinitionParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract Class<? extends SagaManager> |
getBeanClass()
Returns the type of bean to be created by this BeanDefinitionParser.
|
protected org.springframework.beans.factory.support.AbstractBeanDefinition |
parseInternal(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
Parses elements for shared SagaManager logic.
|
protected abstract void |
parseSuppressExceptionsAttribute(Element element,
org.springframework.beans.MutablePropertyValues beanDefinition)
Process the "suppress-exceptions" setting on the given
element . |
protected abstract void |
registerSagaFactory(Object sagaFactoryDefinition,
org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition)
Registers the given
sagaFactoryDefinition in the given sagaManagerDefinition . |
protected abstract void |
registerSagaRepository(Object sagaRepositoryDefinition,
org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition)
Registers the given
sagaRepositoryDefinition in the given sagaManagerDefinition . |
protected abstract void |
registerSpecificProperties(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext,
org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition)
Registers any implementation specific properties found in the given
element in the given
sagaManagerDefinition . |
protected abstract void |
registerTypes(String[] types,
org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition,
org.springframework.beans.factory.config.RuntimeBeanReference parameterResolverFactoryReference)
Registers the given Saga
types in the given sagaManagerDefinition . |
public AbstractSagaManagerBeanDefinitionParser()
protected final org.springframework.beans.factory.support.AbstractBeanDefinition parseInternal(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
element
- The xml element containing the Bean DefinitionparserContext
- The context for the parserprotected abstract Class<? extends SagaManager> getBeanClass()
protected abstract void registerSagaRepository(Object sagaRepositoryDefinition, org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition)
sagaRepositoryDefinition
in the given sagaManagerDefinition
.sagaRepositoryDefinition
- The bean definition of the repository to registersagaManagerDefinition
- The definition of the saga manager to register the repository in.protected abstract void registerSagaFactory(Object sagaFactoryDefinition, org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition)
sagaFactoryDefinition
in the given sagaManagerDefinition
.sagaFactoryDefinition
- The bean definition of the factory to registersagaManagerDefinition
- The definition of the saga manager to register the factory in.protected abstract void registerTypes(String[] types, org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition, org.springframework.beans.factory.config.RuntimeBeanReference parameterResolverFactoryReference)
types
in the given sagaManagerDefinition
.types
- The types of sagas found in the bean definitionsagaManagerDefinition
- The definition of the saga manager to register the types in.parameterResolverFactoryReference
- the reference to the ParameterResolverFactory beanprotected abstract void registerSpecificProperties(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition)
element
in the given
sagaManagerDefinition
. The purpose of this method is to allow different elements to contain
properties specific to that type of implementation.element
- The custom namespace element to parseparserContext
- The object encapsulating the current state of the parsing process; provides access
to a BeanDefinitionRegistrysagaManagerDefinition
- The definition of the saga manager to register the custom properties in.protected abstract void parseSuppressExceptionsAttribute(Element element, org.springframework.beans.MutablePropertyValues beanDefinition)
element
.element
- The element representing the saga manager's bean definitionbeanDefinition
- The bean definition of the Saga ManagerCopyright © 2010-2014. All Rights Reserved.