Assuming that the Ui and Store classes are also implemented as Singleton, you could do it as follows.
public class Singleton extends Parent{
private Ui ui;
private Store store;
private static final singleton INSTANCE;
static {
INSTANCE = new Singleton(Ui.getInstance(), Store.getInstance());
}
private Singleton(Ui ui, Store store) {
super(ui, store);
}
public static singleton getInstance() {
return INSTANCE;
}
protected Object readResolve() {
return getInstance();
}
public void SetStore(Store dstore){
store = dstore;
}
public void SetUi(Ui uid){
ui = uid;
}
}