public static void parseStoreAttribute(XMLExtendedStreamReader reader, int index, AbstractStoreConfigurationBuilder<?, ?> storeBuilder) throws XMLStreamException {
      String value = reader.getAttributeValue(index);
      Attribute attribute = Attribute.forName(reader.getAttributeLocalName(index));
      switch (attribute) {
         case SHARED: {
            storeBuilder.shared(Boolean.parseBoolean(value));
            break;
         }
         case READ_ONLY: {
            storeBuilder.ignoreModifications(Boolean.valueOf(value));
            break;
         }
         case PRELOAD: {
            storeBuilder.preload(Boolean.parseBoolean(value));
            break;
         }
         case FETCH_STATE: {
            storeBuilder.fetchPersistentState(Boolean.parseBoolean(value));
            break;
         }
         case PURGE: {
            storeBuilder.purgeOnStartup(Boolean.parseBoolean(value));
            break;
         }
         case SINGLETON: {
            storeBuilder.singleton().enabled(Boolean.parseBoolean(value));
            break;
         }
         case TRANSACTIONAL: {
            storeBuilder.transactional(Boolean.parseBoolean(value));
            break;
         }
         case MAX_BATCH_SIZE: {
            storeBuilder.maxBatchSize(Integer.parseInt(value));
            break;
         }
         case SEGMENTED: {
            storeBuilder.segmented(Boolean.parseBoolean(value));
            break;
         }
         default: {
            throw ParseUtils.unexpectedAttribute(reader, index);
         }
      }
   }
public static void parseStoreAttribute ( XMLExtendedStreamReader reader , int index , AbstractStoreConfigurationBuilder < ? , ? > storeBuilder ) throws XMLStreamException { String value = reader . getAttributeValue ( index ) ; Attribute attribute = Attribute . forName ( reader . getAttributeLocalName ( index ) ) ; switch ( attribute ) { case SHARED : { storeBuilder . shared ( Boolean . parseBoolean ( value ) ) ; break ; } case READ_ONLY : { storeBuilder . ignoreModifications ( Boolean . valueOf ( value ) ) ; break ; } case PRELOAD : { storeBuilder . preload ( Boolean . parseBoolean ( value ) ) ; break ; } case FETCH_STATE : { storeBuilder . fetchPersistentState ( Boolean . parseBoolean ( value ) ) ; break ; } case PURGE : { storeBuilder . purgeOnStartup ( Boolean . parseBoolean ( value ) ) ; break ; } case SINGLETON : { storeBuilder . singleton ( ) . enabled ( Boolean . parseBoolean ( value ) ) ; break ; } case TRANSACTIONAL : { storeBuilder . transactional ( Boolean . parseBoolean ( value ) ) ; break ; } case MAX_BATCH_SIZE : { storeBuilder . maxBatchSize ( Integer . parseInt ( value ) ) ; break ; } case SEGMENTED : { storeBuilder . segmented ( Boolean . parseBoolean ( value ) ) ; break ; } default : { throw ParseUtils . unexpectedAttribute ( reader , index ) ; } } }
This method is public static so that it can be reused by custom cache store/loader configuration parsers