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

All Known Subinterfaces:
InjectionTarget<T>

public interface Producer<T>

Provides a generic operation for producing an instance of a type.

Version:
$Rev: 815435 $ $Date: 2009-09-15 20:18:44 +0200 (Di, 15. Sep 2009) $ bean type

Method Summary
 void dispose(T instance)
          Its result depends on bean type.
 Set<InjectionPoint> getInjectionPoints()
          Its result depends on bean type.
 T produce(CreationalContext<T> creationalContext)
          Its result depends on bean type.
 

Method Detail

produce

T produce(CreationalContext<T> creationalContext)
Its result depends on bean type.

Parameters:
creationalContext - creational context
Returns:
an instance of bean

dispose

void dispose(T instance)
Its result depends on bean type.

Parameters:
instance - dispose istance

getInjectionPoints

Set<InjectionPoint> getInjectionPoints()
Its result depends on bean type.

Returns:
set of injection points


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