1 16 17 package org.springframework.aop.framework; 18 19 import org.springframework.aop.support.DelegatingIntroductionInterceptor; 20 21 public class TimestampIntroductionInterceptor extends DelegatingIntroductionInterceptor 22 implements TimeStamped { 23 24 private long ts; 25 26 public TimestampIntroductionInterceptor() { 27 } 28 29 public TimestampIntroductionInterceptor(long ts) { 30 this.ts = ts; 31 } 32 33 public void setTime(long ts) { 34 this.ts = ts; 35 } 36 37 public long getTimeStamp() { 38 return ts; 39 } 40 41 } 42 | Popular Tags |