01: /**
02: * Copyright 2003-2007 Luck Consulting Pty Ltd
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */package net.sf.ehcache.loader;
16:
17: /**
18: * Written for Dead-lock poc
19: * @author <a href="mailto:gluck@gregluck.com">Greg Luck</a>
20: * @version $Id: ComponentA.java 561 2007-11-17 00:38:31Z gregluck $
21: */
22: public class ComponentA {
23:
24: private String name;
25: private ComponentB b;
26:
27: /**
28: *
29: * @param name
30: * @param b
31: */
32: public ComponentA(String name, ComponentB b) {
33: this .name = name;
34: this .b = b;
35: }
36:
37: /**
38: *
39: * @return
40: */
41: public String getName() {
42: return name;
43: }
44:
45: /**
46: *
47: * @return
48: */
49: public ComponentB getB() {
50: return b;
51: }
52:
53: /**
54: *
55: * @return
56: */
57: public String toString() {
58: return "A[" + name + "," + b + "]";
59: }
60:
61: }
|