Class AssistedTypeRegistrationExtension.Interceptor<P>

  • Type Parameters:
    P - the provider class
    Enclosing class:
    AssistedTypeRegistrationExtension

    public static class AssistedTypeRegistrationExtension.Interceptor<P>
    extends java.lang.Object
    Interceptor for generated subclass of assisted injection factories.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object intercept​(java.lang.Object factoryInstance, java.lang.Object[] args)
      Called when a factory method call is intercepted.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • intercept

        @RuntimeType
        public java.lang.Object intercept​(@This
                                          java.lang.Object factoryInstance,
                                          @AllArguments
                                          java.lang.Object[] args)
                                   throws CreationException
        Called when a factory method call is intercepted.
        Parameters:
        factoryInstance - the factory instance, cannot be null
        args - an array of all arguments passed to the factory method, never null
        Returns:
        the product of the factory, never null
        Throws:
        CreationException - when the product could not be created