Package org.infinispan.configuration.global

Examples of org.infinispan.configuration.global.GlobalConfigurationBuilder.sites()


         Element element = Element.forName(reader.getLocalName());
         switch (element) {
            case SITE:
               ParseUtils.requireSingleAttribute(reader, Attribute.NAME.getLocalName());
               value = replaceProperties(reader.getAttributeValue(0));
               gcb.sites().addSite().name(value);
               break;
            default:
               throw ParseUtils.unexpectedElement(reader);
         }
         ParseUtils.requireNoContent(reader);
View Full Code Here


   private void parseGlobalSites(final XMLExtendedStreamReader reader, final ConfigurationBuilderHolder holder) throws XMLStreamException {
      GlobalConfigurationBuilder gcb = holder.getGlobalConfigurationBuilder();
      ParseUtils.requireSingleAttribute(reader, "local");
      String value = replaceProperties(reader.getAttributeValue(0));
      gcb.sites().localSite(value);
      ParseUtils.requireNoContent(reader);
   }

   private void parseLocalSites(final XMLExtendedStreamReader reader, final ConfigurationBuilderHolder holder) throws XMLStreamException {
      ConfigurationBuilder ccb = holder.getCurrentConfigurationBuilder();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.