org.jboss.cdi.tck.util
Class DependentInstance<T>

java.lang.Object
  extended by org.jboss.cdi.tck.util.DependentInstance<T>
Type Parameters:
T -

public class DependentInstance<T>
extends Object

Simple helper class for creating and destroying dependent contextual instances.

Author:
Martin Kouba

Constructor Summary
DependentInstance(javax.enterprise.inject.spi.BeanManager beanManager, Class<T> beanType, Annotation... qualifiers)
           
 
Method Summary
 DependentInstance<T> destroy()
          Destroy the created instance properly.
 T get()
           
 boolean isDestroyed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependentInstance

public DependentInstance(javax.enterprise.inject.spi.BeanManager beanManager,
                         Class<T> beanType,
                         Annotation... qualifiers)
Method Detail

get

public T get()
Returns:
the created instance

destroy

public DependentInstance<T> destroy()
Destroy the created instance properly.

Returns:
self

isDestroyed

public boolean isDestroyed()
Returns:
true if destroyed, false otherwise


Copyright © 2008-2013 Seam Framework. All Rights Reserved.