KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > config > Lock


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.object.config;
5
6 import org.apache.commons.lang.builder.ToStringBuilder;
7
8 import com.tc.util.Assert;
9
10 /**
11  * representation of a lock from the config file
12  */

13 public class Lock {
14
15   private String JavaDoc methodJoinPointExpression;
16   private LockDefinition lockDefinition;
17
18   public String JavaDoc toString() {
19     return ToStringBuilder.reflectionToString(this);
20   }
21
22   public Lock(String JavaDoc methodJoinPointExpression, LockDefinition lockDefinition) {
23     Assert.assertNotNull(lockDefinition);
24
25     this.methodJoinPointExpression = methodJoinPointExpression;
26     this.lockDefinition = lockDefinition;
27   }
28
29   public String JavaDoc getMethodJoinPointExpression() {
30     return this.methodJoinPointExpression;
31   }
32
33   public LockDefinition getLockDefinition() {
34     return this.lockDefinition;
35   }
36
37 }
Popular Tags