javax.enterprise.inject.spi
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 Summary
 void inject(T instance, CreationalContext<T> ctx)
          Performs dependency injection upon the given object.
 void postConstruct(T instance)
          Calls PostConstruct callback method if exists.
 void preDestroy(T instance)
          Calls PreDestroy callback method if exists.
 
Methods inherited from interface javax.enterprise.inject.spi.Producer
dispose, getInjectionPoints, produce
 

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


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.