public class CDIComponentProviderFactory extends Object implements IoCComponentProviderFactory, WebApplicationListener
| Constructor and Description |
|---|
CDIComponentProviderFactory(Object bm,
ResourceConfig rc,
WebApplication wa) |
| Modifier and Type | Method and Description |
|---|---|
IoCComponentProvider |
getComponentProvider(Class<?> c)
Get the IoC component provider for a class.
|
IoCComponentProvider |
getComponentProvider(ComponentContext cc,
Class<?> c)
Get the IoC component provider for a class with additional context.
|
void |
onWebApplicationReady() |
public CDIComponentProviderFactory(Object bm, ResourceConfig rc, WebApplication wa)
public void onWebApplicationReady()
onWebApplicationReady in interface WebApplicationListenerpublic IoCComponentProvider getComponentProvider(Class<?> c)
IoCComponentProviderFactorygetComponentProvider in interface ComponentProviderFactory<IoCComponentProvider>getComponentProvider in interface IoCComponentProviderFactoryc - the classpublic IoCComponentProvider getComponentProvider(ComponentContext cc, Class<?> c)
IoCComponentProviderFactory
The additional context will be associated with the annotations and
optionally an annotated object. For example, a component provider may
be requested for a class that is the type of a Field, or be
requested for a class that is the type of a method parameter.
getComponentProvider in interface IoCComponentProviderFactorycc - the component context to obtain annotations and
the annotated object (if present).c - the classCopyright © 2016 Oracle Corporation. All rights reserved.