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
-
-
Constructor Summary
Constructors Constructor Description SmallRyeContextManagerProvider()
-
Method Summary
Modifier and Type Method Description org.eclipse.microprofile.context.spi.ContextManagerfindContextManager(ClassLoader classLoader)Looks for any context manager registered for a particular class loader.SmallRyeContextManagergetContextManager()SmallRyeContextManagergetContextManager(ClassLoader classLoader)SmallRyeContextManager.BuildergetContextManagerBuilder()static SmallRyeContextManagergetManager()static SmallRyeContextManagerProviderinstance()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 voidunregister()Deprecated.Should be removed in favour of SPI
-
-
-
Method Detail
-
register
@Deprecated public static void register()
Deprecated.Should be removed in favour of SPI
-
unregister
@Deprecated public static void unregister()
Deprecated.Should be removed in favour of SPI
-
getContextManager
public SmallRyeContextManager getContextManager()
- Specified by:
getContextManagerin interfaceorg.eclipse.microprofile.context.spi.ContextManagerProvider
-
getContextManager
public SmallRyeContextManager getContextManager(ClassLoader classLoader)
- Specified by:
getContextManagerin interfaceorg.eclipse.microprofile.context.spi.ContextManagerProvider
-
getContextManagerBuilder
public SmallRyeContextManager.Builder 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
public static SmallRyeContextManager getManager()
-
instance
public static SmallRyeContextManagerProvider instance()
-
-