KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > TCObjectFactory


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.object;
5
6 import com.tc.object.bytecode.NullTCObject;
7 import com.tc.object.dna.api.DNA;
8
9 import java.io.IOException JavaDoc;
10 import java.lang.reflect.InvocationTargetException JavaDoc;
11
12 public interface TCObjectFactory {
13
14   public final static TCObject NULL_TC_OBJECT = NullTCObject.INSTANCE;
15
16   public void setObjectManager(ClientObjectManager objectManager);
17
18   public TCObject getNewInstance(ObjectID id, Object JavaDoc peer, Class JavaDoc clazz);
19
20   public TCObject getNewInstance(ObjectID id, Class JavaDoc clazz);
21
22   public Object JavaDoc getNewPeerObject(TCClass type, Object JavaDoc parent) throws IllegalArgumentException JavaDoc, SecurityException JavaDoc,
23       InstantiationException JavaDoc, IllegalAccessException JavaDoc, InvocationTargetException JavaDoc, NoSuchMethodException JavaDoc;
24
25   public Object JavaDoc getNewArrayInstance(TCClass type, int size);
26
27   public Object JavaDoc getNewPeerObject(TCClass type) throws IllegalArgumentException JavaDoc, InstantiationException JavaDoc,
28       IllegalAccessException JavaDoc, InvocationTargetException JavaDoc, SecurityException JavaDoc, NoSuchMethodException JavaDoc;
29
30   public Object JavaDoc getNewPeerObject(TCClass type, DNA dna) throws IOException JavaDoc, ClassNotFoundException JavaDoc;
31
32 }
Popular Tags