org.jboss.seam.cron.util
Class CdiUtils
java.lang.Object
org.jboss.seam.cron.util.CdiUtils
public class CdiUtils
- extends Object
- Author:
- peteroyle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CdiUtils
public CdiUtils()
getQualifier
public static Annotation getQualifier(Annotation binding,
Class qualifierType)
getInstanceByType
public static <T> T getInstanceByType(BeanManager manager,
Class<T> type,
Annotation... bindings)
- Utility method allowing managed instances of beans to provide entry points
for non-managed beans (such as
WeldContainer). Should only called
once CDI has finished booting.
- Parameters:
manager - the BeanManager to use to access the managed instancetype - the type of the Beanbindings - the bean's qualifiers
- Returns:
- a managed instance of the bean
Copyright © 2011 Seam Framework. All Rights Reserved.