KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > dso > ClassTreeBranch


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.admin.dso;
5
6 public class ClassTreeBranch extends ClassTreeTwig {
7   private Integer JavaDoc instanceCount;
8
9   public ClassTreeBranch(String JavaDoc name) {
10     super(name);
11   }
12
13   public int getInstanceCount() {
14     if(instanceCount == null) {
15       ClassesHelper helper = ClassesHelper.getHelper();
16       instanceCount = new Integer JavaDoc(helper.getInstanceCount(this));
17     }
18
19     return instanceCount.intValue();
20   }
21 }
22
Popular Tags