Examples of containingElement()


Examples of org.infinispan.config.ConfigurationAttribute.containingElement()

  
   void reflectAndInvokeAttribute(AbstractConfigurationBean bean, Method m, Element node) {    
      Class<?> parameterType = m.getParameterTypes()[0];
      // is there a ConfigurationAttribute matching the current node iterated?
      ConfigurationAttribute a = m.getAnnotation(ConfigurationAttribute.class);
      boolean matchedAttributeToSetter = a != null && a.containingElement().equals(node.getNodeName());
      boolean isConfigBean = AbstractConfigurationBean.class.isAssignableFrom(parameterType);
      if (matchedAttributeToSetter) {
         String attValue = getAttributeValue(node, a.name());
         Object methodAttributeValue = null;
         if (attValue != null && attValue.length() > 0) {
View Full Code Here

Examples of org.infinispan.config.ConfigurationAttribute.containingElement()

                     sb.append("\n");
                  }
                  sb.append("</p>");
                  for (Method m : clazz.getMethods()) {
                     ConfigurationAttribute a = m.getAnnotation(ConfigurationAttribute.class);
                     boolean childElement = a != null && a.containingElement().equals(ce.name());
                     if (childElement && !createdAttributes) {
                        // Attributes
                        sb.append("<table class=\"bodyTable\"> ");
                        sb.append("<tr class=\"a\"><th>Attribute</th><th>Type</th><th>Default</th><th>Description</th></tr>\n");
                        createdAttributes = true;
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.