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 ClassesModifier and TypeInterfaceDescriptionstatic interface
A Contextual that can be inspected. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<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 Details
-
PROPERTY_NAME
-
-
Method Details
-
create
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
-