/** * Copies complete state of Invocation object. * * @return a copy of this instance */ public Invocation copy() { ConstructorCalledByMethodInvocation wrapper = new ConstructorCalledByMethodInvocation(advisor, callingClass, callingMethod, constructor, wrappingMethod, callingObject, arguments, interceptors); wrapper.setTargetObject(this.getTargetObject()); wrapper.metadata = this.metadata; wrapper.instanceResolver = this.instanceResolver; wrapper.currentInterceptor = this.currentInterceptor; return wrapper; } }
public void addResponseAttachment(Object key, Object val) { wrapped.addResponseAttachment(key, val); }
public Advisor getAdvisor() { return wrapped.getAdvisor(); }
return p.matchesCall(mi.getAdvisor(), mi.getCallingMethod(), mi.getCalledConstructor().getDeclaringClass(), mi.getCalledConstructor());
public Object invokeConCalledByMethod(ConByMethodInfo info, Object callingObject, Object[] args) throws Throwable { ConstructorCalledByMethodInvocation invocation = new ConstructorCalledByMethodInvocation(info, callingObject, args, info.getInterceptors()); return invocation.invokeNext(); }
return new ConstructorCalledByMethodJoinpoint(((ConstructorCalledByMethodInvocation)invocation).getCallingMethod(), ((ConstructorCalledByMethodInvocation)invocation).getCalledConstructor());
public ConstructorCalledByMethodInvocationWrapper(ConstructorCalledByMethodInvocation wrapped, Interceptor[] interceptors) { super(wrapped.getCallingObject(), interceptors); this.wrapped = wrapped; }
public Class<?> getCallingClass() { return wrapped.getCallingClass(); }
public Object[] getArguments() { return wrapped.getArguments(); }
public MetaDataResolver getInstanceResolver() { return wrapped.getInstanceResolver(); }
public Method getCallingMethod() { return wrapped.getCallingMethod(); }
public Constructor<?> getCalledConstructor() { return wrapped.getCalledConstructor(); }
public Invocation copy() { ConstructorCalledByMethodInvocationWrapper invocation = new ConstructorCalledByMethodInvocationWrapper((ConstructorCalledByMethodInvocation) wrapped.copy(), interceptors); invocation.currentInterceptor = this.currentInterceptor; return invocation; }