Interface InjectionTarget<T>

  • All Superinterfaces:
    Producer<T>

    public interface InjectionTarget<T>
    extends Producer<T>
    Provides operations for performing dependency injection and lifecycle callbacks on an instance of a type.
    Version:
    $Rev: 815435 $ $Date: 2009-09-15 20:18:44 +0200 (Tue, 15 Sep 2009) $ bean type
    • Method Detail

      • inject

        void inject​(T instance,
                    CreationalContext<T> ctx)
        Performs dependency injection upon the given object.
        Parameters:
        instance - bean instance
        ctx - creational context
      • postConstruct

        void postConstruct​(T instance)
        Calls PostConstruct callback method if exists.
        Parameters:
        instance - bean instance
      • preDestroy

        void preDestroy​(T instance)
        Calls PreDestroy callback method if exists.
        Parameters:
        instance - bean instance