/** * delegation of serialization behavior */ public <T> T readExternal(Bean<T> bean, ObjectInput out) throws IOException, ClassNotFoundException { return (T) ((ResourceBean)bean).getActualInstance(); }
/** * delegation of serialization behavior */ public <T> T readExternal(final Bean<T> bean, final ObjectInput out) throws IOException, ClassNotFoundException { return (T) ((ResourceBean) bean).getActualInstance(); }
/** * delegation of serialization behavior */ public <T> T readExternal(final Bean<T> bean, final ObjectInput out) throws IOException, ClassNotFoundException { return (T) ((ResourceBean) bean).getActualInstance(); }
/** * delegation of serialization behavior */ @Override public <T> T readExternal(Bean<T> bean, ObjectInput in) throws IOException, ClassNotFoundException { T actualResource = null; // default behavior actualResource = (T) in.readObject(); if (actualResource instanceof javax.rmi.CORBA.Stub) { // for remote ejb stub, reconnect after deserialization. org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(new String[0], null); ((javax.rmi.CORBA.Stub)actualResource).connect(orb); } else if (actualResource.equals(DUMMY_STRING)) { actualResource = (T) ((ResourceBean)bean).getActualInstance(); } return actualResource; }
actualResource = (T) ((ResourceBean)bean).getActualInstance();