KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > mgmt > AbstractObjectFacade


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.objectserver.mgmt;
5
6 import java.io.Serializable JavaDoc;
7
8 abstract class AbstractObjectFacade implements ManagedObjectFacade, Serializable JavaDoc {
9
10   AbstractObjectFacade() {
11     //
12
}
13
14   public final String JavaDoc getFieldType(String JavaDoc fieldName) {
15     return FacadeUtil.getFieldType(getFieldValue(fieldName));
16   }
17
18   public final Object JavaDoc getFieldValue(String JavaDoc fieldName) {
19     Object JavaDoc value = basicGetFieldValue(fieldName);
20     return FacadeUtil.processValue(value);
21   }
22
23   protected abstract Object JavaDoc basicGetFieldValue(String JavaDoc fieldName);
24 }
25
Popular Tags