Class AssistedTypeRegistrationExtension.Interceptor<P>
- java.lang.Object
-
- org.int4.dirk.extensions.assisted.AssistedTypeRegistrationExtension.Interceptor<P>
-
- Type Parameters:
P- the provider class
- Enclosing class:
- AssistedTypeRegistrationExtension
public static class AssistedTypeRegistrationExtension.Interceptor<P> extends java.lang.ObjectInterceptor for generated subclass of assisted injection factories.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectintercept(java.lang.Object factoryInstance, java.lang.Object[] args)Called when a factory method call is intercepted.
-
-
-
Method Detail
-
intercept
@RuntimeType public java.lang.Object intercept(@This java.lang.Object factoryInstance, @AllArguments java.lang.Object[] args) throws CreationExceptionCalled when a factory method call is intercepted.- Parameters:
factoryInstance- the factory instance, cannot benullargs- an array of all arguments passed to the factory method, nevernull- Returns:
- the product of the factory, never
null - Throws:
CreationException- when the product could not be created
-
-