Package org.infinispan.config

Examples of org.infinispan.config.AbstractConfigurationBean


         // there may not be a <default /> element!
         if (defaultElement == null) {
            return new Configuration();
         } else {
            defaultElement.normalize();           
            AbstractConfigurationBean bean = findAndInstantiateBean(defaultElement);
            visitElement(defaultElement, bean);
            return (Configuration) bean;
         }
      } else {
         return gc.getDefaultConfiguration();
View Full Code Here


            if (namedCaches.containsKey(configurationName)) {
               namedCaches = null;
               throw new DuplicateCacheNameException("Named cache " + configurationName + " is declared more than once!");
            }
            try {
               AbstractConfigurationBean bean = findAndInstantiateBean(e);
               visitElement(e, bean);              
               namedCaches.put(configurationName,(Configuration) bean);
            } catch (ConfigurationException ce) {
               throw new ConfigurationException("Problems configuring named cache '" + configurationName + "'", ce);
            }
View Full Code Here

   public GlobalConfiguration parseGlobalConfiguration() {
      assertInitialized();
      if (gc == null) {
         Configuration defaultConfiguration = parseDefaultConfiguration();
         Element globalElement = getSingleElementInCoreNS("global", rootElement);        
         AbstractConfigurationBean bean = findAndInstantiateBean(globalElement);
         visitElement(globalElement, bean);
         gc = (GlobalConfiguration) bean;
         gc.setDefaultConfiguration(defaultConfiguration);
      }
      return gc;
View Full Code Here

               throw new ConfigurationException("Illegal attribute value " + attValue + ",type="
                        + parameterType + ",method=" + m + ",attribute=" + a.name(), ae);
            }
         }
      } else if (isConfigBean) {
         AbstractConfigurationBean childBean = findAndInstantiateBean(node);
         boolean foundMatchingChild = childBean != null
                  && !bean.getClass().equals(childBean.getClass())
                  && parameterType.isInstance(childBean);
         if (foundMatchingChild) { 
            //recurse into child
            visitElement(node,childBean);
            try {
View Full Code Here

TOP

Related Classes of org.infinispan.config.AbstractConfigurationBean

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.