spring-framework / org.aopalliance.intercept / ConstructorInterceptor / construct

construct

abstract fun construct(invocation: ConstructorInvocation): Any

Implement this method to perform extra treatments before and after the construction of a new object. Polite implementations would certainly like to invoke Joinpoint#proceed().

Parameters

invocation - the construction joinpoint

Exceptions

Throwable - if the interceptors or the target object throws an exception

Return
the newly created object, which is also the result of the call to Joinpoint#proceed(); might be replaced by the interceptor