public class CdiComponentProvider extends ComponentProvider
| Constructor and Description | 
|---|
| CdiComponentProvider()Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| <T> java.lang.Object | create(java.lang.Class<T> c)Create new instance. | 
| boolean | destroy(java.lang.Object o)Destroys the given managed instance. | 
| boolean | isApplicable(java.lang.Class<?> c)Checks whether this component provider is able to provide an instance of given  Class. | 
getInvocableMethodpublic CdiComponentProvider()
                     throws javax.naming.NamingException
 Looks up the BeanManager which is later used to provide the instance.
javax.naming.NamingException - when Bean Manager cannot be looked up.public boolean isApplicable(java.lang.Class<?> c)
ComponentProviderClass.isApplicable in class ComponentProviderc - Class to be checked.true iff this ComponentProvider is able to create an instance of the given Class.public <T> java.lang.Object create(java.lang.Class<T> c)
ComponentProvidercreate in class ComponentProviderT - type of the created object.c - Class to be created.null otherwise.public boolean destroy(java.lang.Object o)
ComponentProviderdestroy in class ComponentProvidero - instance to be destroyed.true iff the instance was coupled to this ComponentProvider, false otherwise.Copyright © 2012–2020 Oracle Corporation. All rights reserved.