IT. Expert System.

Java Enterprise Edition (EE)

InjectionTarget


javax.enterprise.inject.spi
Interface InjectionTarget<T>

Type Parameters:
T - The class of the instance
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.

Author:
Pete Muir, David Allen
See Also:
PostConstruct, PreDestroy

Method Summary
 void inject(T instance, CreationalContext<T> ctx)
           Performs dependency injection upon the given object.
 void postConstruct(T instance)
           Calls the PostConstruct callback, if it exists, according to the semantics required by the Java EE platform specification.
 void preDestroy(T instance)
           Calls the PreDestroy callback, if it exists, according to the semantics required by the Java EE platform specification.
 
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. Performs Java EE component environment injection, sets the value of all injected fields, and calls all initializer methods.

Parameters:
instance - The instance upon which to perform injection
ctx - The CreationalContext to use for creating new instances

postConstruct

void postConstruct(T instance)

Calls the PostConstruct callback, if it exists, according to the semantics required by the Java EE platform specification.

Parameters:
instance - The instance on which to invoke the PostConstruct method

preDestroy

void preDestroy(T instance)

Calls the PreDestroy callback, if it exists, according to the semantics required by the Java EE platform specification.

Parameters:
instance - The instance on which to invoke the PreDestroy method


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1217 / . Delta: 0.03510 с