Class HazelcastInstanceDefinitionParser

java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
com.hazelcast.spring.AbstractHazelcastBeanDefinitionParser
com.hazelcast.spring.HazelcastInstanceDefinitionParser
All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser

public class HazelcastInstanceDefinitionParser extends AbstractHazelcastBeanDefinitionParser
BeanDefinitionParser for Hazelcast Instance Configuration.

Sample Spring XML for Hazelcast Instance:


 <hz:hazelcast id="instance">
      <hz:config>
          <hz:cluster-name>dev</hz:cluster-name>
          <hz:network port="5701" port-auto-increment="false">
              <hz:join>
                  <hz:multicast enabled="false" multicast-group="224.2.2.3" multicast-port="54327"/>
                   <hz:tcp-ip enabled="true">
                      <hz:members>10.10.1.2, 10.10.1.3</hz:members>
                   </hz:tcp-ip>
              </hz:join>
          </hz:network>
          <hz:map name="map" backup-count="2" max-size="0"
             read-backup-data="true" eviction-policy="NONE"
          merge-policy="com.hazelcast.spi.merge.PassThroughMergePolicy"/>
      </hz:config>
 </hz:hazelcast>
 
  • Constructor Details

    • HazelcastInstanceDefinitionParser

      public HazelcastInstanceDefinitionParser()
  • Method Details

    • parseInternal

      protected org.springframework.beans.factory.support.AbstractBeanDefinition parseInternal(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
      Specified by:
      parseInternal in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser