configuredProvider, discoveredProviders
Constructor and Description |
---|
Weld() |
Modifier and Type | Method and Description |
---|---|
protected BeanManagerImpl |
ambiguousBeanManager(String callerClassName,
Set<BeanManagerImpl> managers)
Callback that allows to override the behavior when class that invoked CDI.current() is placed in multiple bean archives.
|
void |
cleanup() |
void |
destroy(Object instance)
On
Instance.destroy(Object) being called, the container destroys the instance if the active context object for the scope
type of the bean supports destroying bean instances. |
Object |
get()
Provides a fully-constructed and injected instance of
T . |
BeanManagerProxy |
getBeanManager()
Get the CDI BeanManager for the current context
|
protected String |
getCallingClassName()
Examines
StackTraceElement s to figure out which class invoked a method on CDI . |
protected Instance<Object> |
getInstance() |
boolean |
isAmbiguous()
Determines if there is more than one bean that matches the required type and qualifiers and is eligible for injection
into the class into which the parent Instance was injected.
|
boolean |
isUnsatisfied()
Determines if there is no bean that matches the required type and qualifiers and is eligible for injection into the class
into which the parent Instance was injected.
|
Iterator<Object> |
iterator() |
Instance<Object> |
select(Annotation... qualifiers)
Obtains a child Instance for the given additional required qualifiers.
|
<U> Instance<U> |
select(Class<U> subtype,
Annotation... qualifiers)
Obtains a child Instance for the given required type and additional required qualifiers.
|
<U> Instance<U> |
select(TypeLiteral<U> subtype,
Annotation... qualifiers)
Obtains a child Instance for the given required type and additional required qualifiers.
|
String |
toString() |
protected BeanManagerImpl |
unsatisfiedBeanManager(String callerClassName)
Callback that allows to override the behavior when CDI.current() is not called from within a bean archive.
|
current, setCDIProvider
protected BeanManagerImpl unsatisfiedBeanManager(String callerClassName)
protected BeanManagerImpl ambiguousBeanManager(String callerClassName, Set<BeanManagerImpl> managers)
public BeanManagerProxy getBeanManager()
CDI
getBeanManager
in class CDI<Object>
protected String getCallingClassName()
StackTraceElement
s to figure out which class invoked a method on CDI
.public Object get()
Provider
T
.public Instance<Object> select(Annotation... qualifiers)
Instance
Obtains a child Instance for the given additional required qualifiers.
qualifiers
- the additional required qualifierspublic <U> Instance<U> select(Class<U> subtype, Annotation... qualifiers)
Instance
Obtains a child Instance for the given required type and additional required qualifiers.
U
- the required typesubtype
- a Class
representing the required typequalifiers
- the additional required qualifierspublic <U> Instance<U> select(TypeLiteral<U> subtype, Annotation... qualifiers)
Instance
Obtains a child Instance for the given required type and additional required qualifiers.
U
- the required typesubtype
- a TypeLiteral
representing the required typequalifiers
- the additional required qualifierspublic boolean isUnsatisfied()
Instance
Determines if there is no bean that matches the required type and qualifiers and is eligible for injection into the class into which the parent Instance was injected.
public boolean isAmbiguous()
Instance
Determines if there is more than one bean that matches the required type and qualifiers and is eligible for injection into the class into which the parent Instance was injected.
public void cleanup()
public void destroy(Object instance)
Instance
On Instance.destroy(Object)
being called, the container destroys the instance if the active context object for the scope
type of the bean supports destroying bean instances. All normal scoped built-in contexts support destroying bean
instances.
The instance passed should either be a dependent scoped bean instance, or the client proxy for a normal scoped bean instance.
instance
- the instance to destroyCopyright © 2013 Seam Framework. All Rights Reserved.