public MethodCalledByConstructorInvocation(Advisor advisor, Constructor<?> calling, Method method, Object callingObject, Object target, Object[] args, Interceptor[] interceptors) { super(advisor, callingObject, interceptors); this.calling = calling; this.method = method; setTargetObject(target); this.arguments = args; }
public void setTargetObject(Object targetObject) { wrapped.setTargetObject(targetObject); }
public Object invokeConstructorCaller(MethodByConInfo info, Object callingObject, Object target, Object[] args) throws Throwable { MethodCalledByConstructorInvocation invocation = new MethodCalledByConstructorInvocation(info, callingObject, target, args, info.getInterceptors()); invocation.setTargetObject(target); return invocation.invokeNext(); }