Package org.wildfly.clustering.web.cache
Interface Contextual<C>
- All Known Subinterfaces:
ContextualSessionMetaDataEntry<C>,SessionCreationMetaDataEntry<C>,SessionMetaDataEntry<C>
- All Known Implementing Classes:
DefaultSessionCreationMetaDataEntry,DefaultSessionMetaDataEntry,DefaultSessionMetaDataEntry
public interface Contextual<C>
Provides access to a local context.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiongetContext(Supplier<C> factory) Returns the context, creating it from the specified factory, if necessary.
-
Method Details
-
getContext
Returns the context, creating it from the specified factory, if necessary.- Parameters:
a- context factory- Returns:
- the context.
-