1 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 ; 10 import java.lang.reflect.InvocationTargetException ; 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 peer, Class clazz); 19 20 public TCObject getNewInstance(ObjectID id, Class clazz); 21 22 public Object getNewPeerObject(TCClass type, Object parent) throws IllegalArgumentException , SecurityException , 23 InstantiationException , IllegalAccessException , InvocationTargetException , NoSuchMethodException ; 24 25 public Object getNewArrayInstance(TCClass type, int size); 26 27 public Object getNewPeerObject(TCClass type) throws IllegalArgumentException , InstantiationException , 28 IllegalAccessException , InvocationTargetException , SecurityException , NoSuchMethodException ; 29 30 public Object getNewPeerObject(TCClass type, DNA dna) throws IOException , ClassNotFoundException ; 31 32 } | Popular Tags |