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