Package org.infinispan.config

Examples of org.infinispan.config.ConfigurationElements


      String name = e.getTagName();
      String parentName = ((Element) e.getParentNode()).getTagName();
      if (parentName.equals("namedCache"))
         parentName = "default";
      for (Class<?> clazz : b) {
         ConfigurationElements elements = clazz.getAnnotation(ConfigurationElements.class);
         try {
            if (elements != null) {
               for (ConfigurationElement ce : elements.elements()) {
                  if (ce.name().equals(name) && ce.parent().equals(parentName)) {
                     return (AbstractConfigurationBean) clazz.newInstance();
                  }
               }
            } else {
View Full Code Here


   }
  
   private ConfigurationElement findConfigurationElement(Element e, Class<?> bean) {
      ConfigurationElement result = null;
      ConfigurationElement ces[] = null;
      ConfigurationElements configurationElements = bean.getAnnotation(ConfigurationElements.class);
      ConfigurationElement configurationElement = bean.getAnnotation(ConfigurationElement.class);
      String parentName = ((Element)e.getParentNode()).getTagName();
      if(parentName.equals("namedCache"))
         parentName = "default";

      if (configurationElement != null) {
         ces = new ConfigurationElement[] { configurationElement };
      }
      if (configurationElements != null) {
         ces = configurationElements.elements();
      }
      if (ces != null) {
         for (ConfigurationElement el : ces) {
            if (el.name().equals(e.getNodeName()) && el.parent().equals(parentName)) {
               result = el;
View Full Code Here

         sb.append("</pre></div>");
        
         tree(configBeans);
         for (Class<?> clazz : configBeans) {
            ConfigurationElement ces[] = null;
            ConfigurationElements configurationElements = clazz.getAnnotation(ConfigurationElements.class);
            ConfigurationElement configurationElement = clazz.getAnnotation(ConfigurationElement.class);

            if (configurationElement != null && configurationElements == null) {
               ces = new ConfigurationElement[]{configurationElement};
            }
            if (configurationElements != null && configurationElement == null) {
               ces = configurationElements.elements();
            }
            if (ces != null) {
               for (ConfigurationElement ce : ces) {
                  boolean createdAttributes = false;
                  boolean createdProperties = false;
View Full Code Here

  
   private TreeNode tree(List<Class<?>>configBeans){
      List<ConfigurationElement> lce = new ArrayList<ConfigurationElement>(7);
      for (Class<?> clazz : configBeans) {
         ConfigurationElement ces[] = null;
         ConfigurationElements configurationElements = clazz.getAnnotation(ConfigurationElements.class);
         ConfigurationElement configurationElement = clazz.getAnnotation(ConfigurationElement.class);

         if (configurationElement != null && configurationElements == null) {
            ces = new ConfigurationElement[]{configurationElement};
         }
         if (configurationElements != null && configurationElement == null) {
            ces = configurationElements.elements();
         }
         if(ces != null){
            lce.addAll(Arrays.asList(ces));
         }
      }
View Full Code Here

TOP

Related Classes of org.infinispan.config.ConfigurationElements

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.