Modifier | Constructor and Description |
---|---|
protected |
CDIBasedContainer()
Deprecated.
CDI eyes only
|
|
CDIBasedContainer(javax.enterprise.inject.spi.BeanManager beanManager) |
Modifier and Type | Method and Description |
---|---|
<T> boolean |
canProvide(Class<T> type)
Returns
true if this container can provide an instance for
the given class, false otherwise. |
<T> T |
instanceFor(Class<T> type)
Retrieves the appropriate instance for the given class.
|
protected CDIBasedContainer()
@Inject public CDIBasedContainer(javax.enterprise.inject.spi.BeanManager beanManager)
public <T> T instanceFor(Class<T> type)
Container
instanceFor
in interface Container
type
- of the required componentpublic <T> boolean canProvide(Class<T> type)
Container
true
if this container can provide an instance for
the given class, false
otherwise.canProvide
in interface Container
type
- of the required componentCopyright © 2014 Caelum. All rights reserved.