private void readObject(ObjectInputStream objectInputStream) throws IOException { try { objectInputStream.defaultReadObject(); executeInterception(null, null, InterceptionType.POST_ACTIVATE); } catch (Throwable throwable) { throw new IOException("Error while deserializing class", throwable); } }
private void writeObject(ObjectOutputStream objectOutputStream) throws IOException { try { executeInterception(null, null, InterceptionType.PRE_PASSIVATE); objectOutputStream.defaultWriteObject(); } catch (Throwable throwable) { throw new IOException("Error while serializing class", throwable); } }
private void writeObject(ObjectOutputStream objectOutputStream) throws IOException { try { executeInterception(isProxy() ? targetInstance : null, null, null, null, InterceptionType.PRE_PASSIVATE); objectOutputStream.defaultWriteObject(); } catch (Throwable throwable) { throw new IOException("Error while serializing class", throwable); } }
return executeInterception(thisMethod, args, InterceptionType.AROUND_TIMEOUT); return executeInterception(thisMethod, args, InterceptionType.AROUND_INVOKE); return executeInterception(null, null, InterceptionType.POST_CONSTRUCT); return executeInterception(null, null, InterceptionType.PRE_DESTROY);
private void readObject(ObjectInputStream objectInputStream) throws IOException { try { objectInputStream.defaultReadObject(); if (isProxy() && targetInstance instanceof ProxyObject && ((ProxyObject) targetInstance).getHandler() == null) { ((ProxyObject) targetInstance).setHandler(DEFAULT_METHOD_HANDLER); } executeInterception(isProxy() ? targetInstance : null, null, null, null, InterceptionType.POST_ACTIVATE); } catch (Throwable throwable) { throw new IOException("Error while deserializing class", throwable); } }
return executeInterception(isProxy() ? null : self, null, null, null, InterceptionType.POST_CONSTRUCT); return executeInterception(isProxy() ? null : self, null, null, null, InterceptionType.PRE_DESTROY); return executeInterception(isProxy() ? null : self, thisMethod, thisMethod, args, InterceptionType.AROUND_TIMEOUT); return executeInterception(isProxy() ? null : self, thisMethod, thisMethod, args, InterceptionType.AROUND_INVOKE);