Examples of deprecatedMessage()


Examples of org.jgroups.annotations.Property.deprecatedMessage()

            String tmp=grabSystemProp(method.getAnnotation(Property.class));
            if(tmp != null)
                propertyValue=tmp;

            if(propertyName != null && propertyValue != null) {
                String deprecated_msg=annotation.deprecatedMessage();
                if(deprecated_msg != null && deprecated_msg.length() > 0) {
                    log.warn(method.getDeclaringClass().getSimpleName() + "." + methodName + ": " + deprecated_msg);
                }
            }
View Full Code Here

Examples of org.jgroups.annotations.Property.deprecatedMessage()

            String tmp=grabSystemProp(field.getAnnotation(Property.class));
            if(tmp != null)
                propertyValue=tmp;

            if(propertyName != null && propertyValue != null) {
                String deprecated_msg=annotation.deprecatedMessage();
                if(deprecated_msg != null && deprecated_msg.length() > 0) {
                    log.warn(field.getDeclaringClass().getSimpleName() + "." + field.getName() + ": " + deprecated_msg);
                }
            }
           
View Full Code Here

Examples of org.jgroups.annotations.Property.deprecatedMessage()

         for (Field field : fields) {
            if (field.isAnnotationPresent(Property.class)) {
               String property = field.getName();
               Property r = field.getAnnotation(Property.class);
               boolean annotationRedefinesName = r.name().length() > 0
                        && r.deprecatedMessage().length() == 0;
               if (annotationRedefinesName) {
                  property = r.name();
               }
               if(property == null || property.length()==0) {
                   throw new IllegalArgumentException("Cannot create empty attribute name for element xs:attribute, field is " + field);
View Full Code Here

Examples of org.jgroups.annotations.Property.deprecatedMessage()

            String tmp=grabSystemProp(method.getAnnotation(Property.class));
            if(tmp != null)
                propertyValue=tmp;

            if(propertyName != null && propertyValue != null) {
                String deprecated_msg=annotation.deprecatedMessage();
                if(deprecated_msg != null && deprecated_msg.length() > 0) {
                    log.warn(method.getDeclaringClass().getSimpleName() + "." + methodName + ": " + deprecated_msg);
                }
            }
View Full Code Here

Examples of org.jgroups.annotations.Property.deprecatedMessage()

            String tmp=grabSystemProp(field.getAnnotation(Property.class));
            if(tmp != null)
                propertyValue=tmp;

            if(propertyName != null && propertyValue != null) {
                String deprecated_msg=annotation.deprecatedMessage();
                if(deprecated_msg != null && deprecated_msg.length() > 0) {
                    log.warn(field.getDeclaringClass().getSimpleName() + "." + field.getName() + ": " + deprecated_msg);
                }
            }
           
View Full Code Here

Examples of org.jgroups.annotations.Property.deprecatedMessage()

         for (Field field : fields) {
            if (field.isAnnotationPresent(Property.class)) {
               String property = field.getName();
               Property r = field.getAnnotation(Property.class);
               boolean annotationRedefinesName = r.name().length() > 0
                        && r.deprecatedMessage().length() == 0;
               if (annotationRedefinesName) {
                  property = r.name();
               }
               Element attributeElement = xmldoc.createElement("xs:attribute");
               attributeElement.setAttribute("name", property);
View Full Code Here

Examples of org.jgroups.annotations.Property.deprecatedMessage()

                if(field.isAnnotationPresent(Property.class)) {
                    Property annotation=field.getAnnotation(Property.class);
                    String propertyName=field.getName();
                    if(props.containsKey(annotation.name())) {
                        propertyName=annotation.name();
                        boolean isDeprecated=annotation.deprecatedMessage().length() > 0;
                        if(isDeprecated && log.isWarnEnabled()) {
                            log.warn(annotation.deprecatedMessage());
                        }
                    }
                    String propertyValue=props.getProperty(propertyName);
View Full Code Here

Examples of org.jgroups.annotations.Property.deprecatedMessage()

                    String propertyName=field.getName();
                    if(props.containsKey(annotation.name())) {
                        propertyName=annotation.name();
                        boolean isDeprecated=annotation.deprecatedMessage().length() > 0;
                        if(isDeprecated && log.isWarnEnabled()) {
                            log.warn(annotation.deprecatedMessage());
                        }
                    }
                    String propertyValue=props.getProperty(propertyName);
                    if(propertyValue != null || !annotation.converter().equals(PropertyConverters.Default.class)){
                        PropertyConverter propertyConverter=(PropertyConverter)annotation.converter().newInstance();
View Full Code Here

Examples of org.jgroups.annotations.Property.deprecatedMessage()

      if(field.isAnnotationPresent(Property.class)) {
        Property annotation=field.getAnnotation(Property.class);
        String propertyName=field.getName();
        if(props.containsKey(annotation.name())) {
          propertyName=annotation.name();
          boolean isDeprecated=annotation.deprecatedMessage().length() > 0;
          if(isDeprecated && log.isWarnEnabled()) {
            log.warn(annotation.deprecatedMessage());
          }
        }
        String propertyValue=props.getProperty(propertyName);
View Full Code Here

Examples of org.jgroups.annotations.Property.deprecatedMessage()

        String propertyName=field.getName();
        if(props.containsKey(annotation.name())) {
          propertyName=annotation.name();
          boolean isDeprecated=annotation.deprecatedMessage().length() > 0;
          if(isDeprecated && log.isWarnEnabled()) {
            log.warn(annotation.deprecatedMessage());
          }
        }
        String propertyValue=props.getProperty(propertyName);
        if(propertyValue != null || !annotation.converter().equals(PropertyConverters.Default.class)){
          PropertyConverter propertyConverter=(PropertyConverter)annotation.converter().newInstance();
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.