org.axonframework.contextsupport.spring
Class SyncSagaManagerBeanDefinitionParser

java.lang.Object
  extended by org.axonframework.contextsupport.spring.AbstractSagaManagerBeanDefinitionParser
      extended by org.axonframework.contextsupport.spring.SyncSagaManagerBeanDefinitionParser

public class SyncSagaManagerBeanDefinitionParser
extends AbstractSagaManagerBeanDefinitionParser

BeanDefinitionParser that parses saga-manager elements in the application context.

Since:
0.7
Author:
Allard Buijze

Constructor Summary
SyncSagaManagerBeanDefinitionParser()
           
 
Method Summary
protected  Class<? extends SagaManager> getBeanClass()
          Returns the type of bean to be created by this BeanDefinitionParser.
protected  void parseSuppressExceptionsAttribute(Element element, org.springframework.beans.MutablePropertyValues beanDefinition)
          Process the "suppress-exceptions" setting on the given element.
protected  void registerSagaFactory(Object sagaFactoryDefinition, org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition)
          Registers the given sagaFactoryDefinition in the given sagaManagerDefinition.
protected  void registerSagaRepository(Object sagaRepositoryDefinition, org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition)
          Registers the given sagaRepositoryDefinition in the given sagaManagerDefinition.
protected  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  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.
 
Methods inherited from class org.axonframework.contextsupport.spring.AbstractSagaManagerBeanDefinitionParser
parseInternal, parseReplayableAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncSagaManagerBeanDefinitionParser

public SyncSagaManagerBeanDefinitionParser()
Method Detail

getBeanClass

protected Class<? extends SagaManager> getBeanClass()
Description copied from class: AbstractSagaManagerBeanDefinitionParser
Returns the type of bean to be created by this BeanDefinitionParser.

Specified by:
getBeanClass in class AbstractSagaManagerBeanDefinitionParser
Returns:
the type of bean to be created by this BeanDefinitionParser.

registerSagaRepository

protected void registerSagaRepository(Object sagaRepositoryDefinition,
                                      org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition)
Description copied from class: AbstractSagaManagerBeanDefinitionParser
Registers the given sagaRepositoryDefinition in the given sagaManagerDefinition.

Specified by:
registerSagaRepository in class AbstractSagaManagerBeanDefinitionParser
Parameters:
sagaRepositoryDefinition - The bean definition of the repository to register
sagaManagerDefinition - The definition of the saga manager to register the repository in.

registerSagaFactory

protected void registerSagaFactory(Object sagaFactoryDefinition,
                                   org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition)
Description copied from class: AbstractSagaManagerBeanDefinitionParser
Registers the given sagaFactoryDefinition in the given sagaManagerDefinition.

Specified by:
registerSagaFactory in class AbstractSagaManagerBeanDefinitionParser
Parameters:
sagaFactoryDefinition - The bean definition of the factory to register
sagaManagerDefinition - The definition of the saga manager to register the factory in.

registerTypes

protected void registerTypes(String[] types,
                             org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition,
                             org.springframework.beans.factory.config.RuntimeBeanReference parameterResolverFactoryReference)
Description copied from class: AbstractSagaManagerBeanDefinitionParser
Registers the given Saga types in the given sagaManagerDefinition.

Specified by:
registerTypes in class AbstractSagaManagerBeanDefinitionParser
Parameters:
types - The types of sagas found in the bean definition
sagaManagerDefinition - The definition of the saga manager to register the types in.
parameterResolverFactoryReference - the reference to the ParameterResolverFactory bean

registerSpecificProperties

protected void registerSpecificProperties(Element element,
                                          org.springframework.beans.factory.xml.ParserContext parserContext,
                                          org.springframework.beans.factory.support.GenericBeanDefinition sagaManagerDefinition)
Description copied from class: AbstractSagaManagerBeanDefinitionParser
Registers any implementation specific properties found in the given element in the given sagaManagerDefinition. The purpose of this method is to allow different elements to contain properties specific to that type of implementation.

Specified by:
registerSpecificProperties in class AbstractSagaManagerBeanDefinitionParser
Parameters:
element - The custom namespace element to parse
parserContext - The object encapsulating the current state of the parsing process; provides access to a BeanDefinitionRegistry
sagaManagerDefinition - The definition of the saga manager to register the custom properties in.

parseSuppressExceptionsAttribute

protected void parseSuppressExceptionsAttribute(Element element,
                                                org.springframework.beans.MutablePropertyValues beanDefinition)
Description copied from class: AbstractSagaManagerBeanDefinitionParser
Process the "suppress-exceptions" setting on the given element.

Specified by:
parseSuppressExceptionsAttribute in class AbstractSagaManagerBeanDefinitionParser
Parameters:
element - The element representing the saga manager's bean definition
beanDefinition - The bean definition of the Saga Manager


Copyright © 2010-2016. All Rights Reserved.