org.jboss.cdi.tck.util
Class DependentInstance<T>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DependentInstance
public DependentInstance(javax.enterprise.inject.spi.BeanManager beanManager,
Class<T> beanType,
Annotation... qualifiers)
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.