Examples of deprecatedMessage()


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

              field.getName() + " which is not annotated with @Property") ;
        }
        String propertyName=field.getName();
        if(props.containsKey(annotation.name())) {
          propertyName=annotation.name();
          boolean isDeprecated=annotation.deprecatedMessage().length() > 0;
          if(isDeprecated && log.isWarnEnabled()) {
            log.warn(propertyName + " has been deprecated: " + annotation.deprecatedMessage());
          }
        }
        return 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(propertyName + " has been deprecated: " + annotation.deprecatedMessage());
          }
        }
        return propertyName ;
      }
     
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 + " has been deprecated : " +
                            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() + " has been deprecated: " +
                            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()

              field.getName() + " which is not annotated with @Property") ;
        }
        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());
          }
        }
        return 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());
          }
        }
        return propertyName ;
      }
     
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
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.