package x;

import org.omg.CORBA.ORB;
import org.omg.CORBA_2_3.portable.OutputStream;

import com.sun.corba.se.spi.ior.ObjectId;
import com.sun.corba.se.spi.ior.ObjectKey;
import com.sun.corba.se.spi.ior.ObjectKeyTemplate;
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher;

public class MyObjectKey implements ObjectKey {

    @Override
    public byte[] getBytes(ORB orb) {
        return new byte[]{0,0,0,0};
    }

    @Override
    public ObjectId getId() {
        return new MyObjectId();
    }

    @Override
    public CorbaServerRequestDispatcher getServerRequestDispatcher(
            com.sun.corba.se.spi.orb.ORB orb) {
        return new MyCorbaServerRequestDispatcher(orb);
    }

    @Override
    public ObjectKeyTemplate getTemplate() {
        return new MyObjectKeyTemplate();
    }

    @Override
    public void write(OutputStream arg0) {
        // TODO Auto-generated method stub

    }

}
