Package org.jboss.cdi.tck.spi
Interface Contextuals
-
public interface Contextuals
Provides 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 interface
Contextuals.Inspectable<T>
A Contextual that can be inspected.
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_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 entireContextual
contract; the TCK only requires it to:- return the given
instance
fromContextual.create(CreationalContext)
; - capture all the parameters passed to
Contextual
methods in order to fulfil theContextuals.Inspectable
contract.
- 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
-
-