1 4 package com.tc.object.config; 5 6 import org.apache.commons.lang.builder.ToStringBuilder; 7 8 import com.tc.util.Assert; 9 10 13 public class Lock { 14 15 private String methodJoinPointExpression; 16 private LockDefinition lockDefinition; 17 18 public String toString() { 19 return ToStringBuilder.reflectionToString(this); 20 } 21 22 public Lock(String methodJoinPointExpression, LockDefinition lockDefinition) { 23 Assert.assertNotNull(lockDefinition); 24 25 this.methodJoinPointExpression = methodJoinPointExpression; 26 this.lockDefinition = lockDefinition; 27 } 28 29 public String getMethodJoinPointExpression() { 30 return this.methodJoinPointExpression; 31 } 32 33 public LockDefinition getLockDefinition() { 34 return this.lockDefinition; 35 } 36 37 } | Popular Tags |