Class HazelcastConfigBeanDefinitionParser

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

public class HazelcastConfigBeanDefinitionParser extends AbstractHazelcastBeanDefinitionParser
BeanDefinitionParser for Hazelcast Config Configuration.

Sample Spring XML for Hazelcast Config:


   <hz:config>
     <hz:map name="map1">
       <hz:near-cache time-to-live-seconds="0" max-idle-seconds="60"
            eviction-policy="LRU" max-size="5000"  invalidate-on-change="true"/>

     <hz:map-store enabled="true" class-name="com.foo.DummyStore"
            write-delay-seconds="0"/>
     </hz:map>
     <hz:map name="map2">
       <hz:map-store enabled="true" implementation="dummyMapStore"
          write-delay-seconds="0"/>
       </hz:map>

     <bean id="dummyMapStore" class="com.foo.DummyStore" />
  </hz:config>
 
  • Constructor Details

    • HazelcastConfigBeanDefinitionParser

      public HazelcastConfigBeanDefinitionParser()
  • Method Details

    • parseInternal

      public 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