01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin.dso;
05:
06: public class ClassTreeBranch extends ClassTreeTwig {
07: private Integer instanceCount;
08:
09: public ClassTreeBranch(String name) {
10: super (name);
11: }
12:
13: public int getInstanceCount() {
14: if (instanceCount == null) {
15: ClassesHelper helper = ClassesHelper.getHelper();
16: instanceCount = new Integer(helper.getInstanceCount(this));
17: }
18:
19: return instanceCount.intValue();
20: }
21: }
|