Package org.jboss.cdi.tck.spi
Interface Contextuals.Inspectable<T>
- Type Parameters:
T
- type of the instances
- All Superinterfaces:
jakarta.enterprise.context.spi.Contextual<T>
- Enclosing interface:
- Contextuals
public static interface Contextuals.Inspectable<T>
extends jakarta.enterprise.context.spi.Contextual<T>
A Contextual that can be inspected.
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.enterprise.context.spi.CreationalContext<T>
Returns theCreationalContext
passed toContextual.create(CreationalContext)
.jakarta.enterprise.context.spi.CreationalContext<T>
Returns theCreationalContext
passed toContextual.destroy(Object, CreationalContext)
.Returns the instance passed toContextual.destroy(Object, CreationalContext)
.Methods inherited from interface jakarta.enterprise.context.spi.Contextual
create, destroy
-
Method Details
-
getCreationalContextPassedToCreate
jakarta.enterprise.context.spi.CreationalContext<T> getCreationalContextPassedToCreate()Returns theCreationalContext
passed toContextual.create(CreationalContext)
. Returnsnull
ifcreate
was not called yet.- Returns:
- the
CreationalContext
passed toContextual.create(CreationalContext)
-
getInstancePassedToDestroy
T getInstancePassedToDestroy()Returns the instance passed toContextual.destroy(Object, CreationalContext)
. Returnsnull
ifdestroy
was not called yet.- Returns:
- the instance passed to
Contextual.destroy(Object, CreationalContext)
-
getCreationalContextPassedToDestroy
jakarta.enterprise.context.spi.CreationalContext<T> getCreationalContextPassedToDestroy()Returns theCreationalContext
passed toContextual.destroy(Object, CreationalContext)
. Returnsnull
ifdestroy
was not called yet.- Returns:
- the
CreationalContext
passed toContextual.destroy(Object, CreationalContext)
-