Package org.jboss.cdi.tck.spi
Interface Contextuals
-
public interface ContextualsProvides Contextual related operations. The TCK porting package must provide an implementation of this interface which is suitable for the target implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceContextuals.Inspectable<T>A Contextual that can be inspected.
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Contextuals.Inspectable<T>create(T instance, jakarta.enterprise.context.spi.Context context)Creates a dummy inspectable Contextual that will be used with given Context.
-
-
-
Field Detail
-
PROPERTY_NAME
static final String PROPERTY_NAME
-
-
Method Detail
-
create
<T> Contextuals.Inspectable<T> create(T instance, jakarta.enterprise.context.spi.Context context)
Creates a dummy inspectable Contextual that will be used with given Context. The result does not necessarily fulfil the entireContextualcontract; the TCK only requires it to:- return the given
instancefromContextual.create(CreationalContext); - capture all the parameters passed to
Contextualmethods in order to fulfil theContextuals.Inspectablecontract.
- Type Parameters:
T- type of the instance- Parameters:
instance- the instance to be returned byContextual.create(CreationalContext)context- the Context that the returned Contextual can be used with- Returns:
- a Contextual that can be inspected
- return the given
-
-