Class JoramServerBeanDefinitionParser

  • All Implemented Interfaces:
    org.springframework.beans.factory.xml.BeanDefinitionParser

    public class JoramServerBeanDefinitionParser
    extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
    Parser for the joram:joramserver xml entry.

    The joram server attributes:

    • sid (optionnal): the server id value (default 0)
    • persistent (optionnal): true if the Joram server if persistent (default false)
    • pathToConf (optionnal): the path to the configuration (a3servers.xml, ...) (default “.”)
    • storage (optionnal): the path to the persistent directory (default “s+sid”)
    • stopServer (optionnal): if true the server stop on destroy (default false)
    
     A simple example:
     
     <!--  lets create an embedded Joram server -->
     <joram:joramserver id="server" 
        sid="0" 
        persistent="true" 
        pathToConf="/JONAS_BASE/conf" 
        storage="/JONAS_BASE/work/s0" 
        stopServer="false"/>
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Logger logmon  
      • Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser

        ID_ATTRIBUTE, NAME_ATTRIBUTE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createAndStart​(short sid, String pathToConf, String storage, boolean persistent)
      Create and start a collocated Joram server.
      protected void doParse​(Element element, org.springframework.beans.factory.support.BeanDefinitionBuilder bean)
      Parse the joram server definition, and create and start the collocated server.
      protected Class getBeanClass​(Element element)  
      • Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser

        doParse, getBeanClassName, getParentName, parseInternal
      • Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser

        parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback
    • Field Detail

      • logmon

        public static final Logger logmon
    • Constructor Detail

      • JoramServerBeanDefinitionParser

        public JoramServerBeanDefinitionParser()
    • Method Detail

      • getBeanClass

        protected Class getBeanClass​(Element element)
        Overrides:
        getBeanClass in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
      • doParse

        protected void doParse​(Element element,
                               org.springframework.beans.factory.support.BeanDefinitionBuilder bean)
        Parse the joram server definition, and create and start the collocated server.
        Overrides:
        doParse in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
        See Also:
        AbstractSingleBeanDefinitionParser.doParse(org.w3c.dom.Element, org.springframework.beans.factory.support.BeanDefinitionBuilder)
      • createAndStart

        public void createAndStart​(short sid,
                                   String pathToConf,
                                   String storage,
                                   boolean persistent)
        Create and start a collocated Joram server.
        Parameters:
        sid - the server id
        pathToConf - the path to the configuration (a3servers.xml, ...)
        storage - the path to the persistent directory
        persistent - true if the Joram server if persistent