SHARE
TWEET

Untitled

a guest Jan 19th, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package net.thoughtforge.bean;
  2.  
  3. import java.util.Date;
  4. import net.thoughtforge.aspect.Loggable;
  5. import net.thoughtforge.logger.LogLevel;
  6. import org.apache.commons.lang.builder.ToStringBuilder;
  7. import org.springframework.stereotype.Component;
  8.  
  9. @Component(value = "simpleBean")
  10. public class SimpleBean {
  11.  
  12.   private Date dateProperty;
  13.   private Integer integerProperty;
  14.   private String stringProperty;
  15.  
  16.   @Loggable(value = LogLevel.TRACE)
  17.   public Date getDateProperty() {
  18.     return dateProperty;
  19.   }
  20.  
  21.   @Loggable(value = LogLevel.TRACE)
  22.   public void setDateProperty(final Date dateProperty) {
  23.     this.dateProperty = dateProperty;
  24.   }
  25.  
  26.   @Loggable(value = LogLevel.TRACE)
  27.   public Integer getIntegerProperty() {
  28.     return integerProperty;
  29.   }
  30.  
  31.   @Loggable(value = LogLevel.TRACE)
  32.   public void setIntegerProperty(final Integer integerProperty) {
  33.     this.integerProperty = integerProperty;
  34.   }
  35.  
  36.   @Loggable(value = LogLevel.TRACE)
  37.   public String getStringProperty() {
  38.     return stringProperty;
  39.   }
  40.  
  41.   @Loggable(value = LogLevel.TRACE)
  42.   public void setStringProperty(final String stringProperty) {
  43.     this.stringProperty = stringProperty;
  44.   }
  45.  
  46.   @Override
  47.   public String toString() {
  48.     return new ToStringBuilder(this).append("dateProperty", dateProperty)
  49.         .append("integerProperty", integerProperty).append("stringProperty", stringProperty).toString();
  50.   }
  51. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top