Package org.infinispan.configuration.as

Examples of org.infinispan.configuration.as.ParserContextAS7


      }
      }
   }

   private void parseRemoteStore(final XMLExtendedStreamReader reader, ConfigurationBuilderHolder holder) throws XMLStreamException {
      ParserContextAS7 context = holder.getParserContext(ParserAS7.class);
      LoadersConfigurationBuilder loaders = holder.getCurrentConfigurationBuilder().loaders();
      RemoteCacheStoreConfigurationBuilder builder = new RemoteCacheStoreConfigurationBuilder(loaders);
      parseRemoteStoreAttributes(reader, builder);

      while (reader.hasNext() && (reader.nextTag() != XMLStreamConstants.END_ELEMENT)) {
View Full Code Here


      final String value = ParseUtils.requireSingleAttribute(reader, Attribute.OUTBOUND_SOCKET_BINDING.getLocalName());
      context.addParsingCompleteListener(new ParserContextListener() {

         @Override
         public void parsingComplete(ParserContext context) {
            ParserContextAS7 ctx = (ParserContextAS7) context;
            OutboundSocketBinding binding = ctx.getOutboundSocketBinding(value);
            builder.host(binding.host()).port(binding.port());
         }
      });
      ParseUtils.requireNoContent(reader);
   }
View Full Code Here

TOP

Related Classes of org.infinispan.configuration.as.ParserContextAS7

Copyright © 2018 www.massapicom. 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.