Package io.smallrye.context
Class SmallRyeContextManagerProvider
java.lang.Object
io.smallrye.context.SmallRyeContextManagerProvider
- All Implemented Interfaces:
org.eclipse.microprofile.context.spi.ContextManagerProvider
public class SmallRyeContextManagerProvider
extends Object
implements org.eclipse.microprofile.context.spi.ContextManagerProvider
-
Field Summary
Fields inherited from interface org.eclipse.microprofile.context.spi.ContextManagerProvider
INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.microprofile.context.spi.ContextManagerfindContextManager(ClassLoader classLoader) Looks for any context manager registered for a particular class loader.getContextManager(ClassLoader classLoader) static SmallRyeContextManagerinstance()static voidregister()Deprecated.Should be removed in favour of SPIvoidregisterContextManager(org.eclipse.microprofile.context.spi.ContextManager manager, ClassLoader classLoader) voidreleaseContextManager(org.eclipse.microprofile.context.spi.ContextManager manager) static voidDeprecated.Should be removed in favour of SPI
-
Constructor Details
-
SmallRyeContextManagerProvider
public SmallRyeContextManagerProvider()
-
-
Method Details
-
register
Deprecated.Should be removed in favour of SPI -
unregister
Deprecated.Should be removed in favour of SPI -
getContextManager
- Specified by:
getContextManagerin interfaceorg.eclipse.microprofile.context.spi.ContextManagerProvider
-
getContextManager
- Specified by:
getContextManagerin interfaceorg.eclipse.microprofile.context.spi.ContextManagerProvider
-
getContextManagerBuilder
- Specified by:
getContextManagerBuilderin interfaceorg.eclipse.microprofile.context.spi.ContextManagerProvider
-
registerContextManager
public void registerContextManager(org.eclipse.microprofile.context.spi.ContextManager manager, ClassLoader classLoader) - Specified by:
registerContextManagerin interfaceorg.eclipse.microprofile.context.spi.ContextManagerProvider
-
releaseContextManager
public void releaseContextManager(org.eclipse.microprofile.context.spi.ContextManager manager) - Specified by:
releaseContextManagerin interfaceorg.eclipse.microprofile.context.spi.ContextManagerProvider
-
findContextManager
public org.eclipse.microprofile.context.spi.ContextManager findContextManager(ClassLoader classLoader) Looks for any context manager registered for a particular class loader. If not found it will not throw an error, unlikegetContextManager(ClassLoader).- Parameters:
classLoader- The class loader- Returns:
- The context manager for the class loader, or
nullif none could be found
-
getManager
-
instance
-