Class SmallRyeContextManagerProvider

  • All Implemented Interfaces:
    org.eclipse.microprofile.context.spi.ContextManagerProvider

    public class SmallRyeContextManagerProvider
    extends Object
    implements org.eclipse.microprofile.context.spi.ContextManagerProvider
    • Constructor Detail

      • SmallRyeContextManagerProvider

        public SmallRyeContextManagerProvider()
    • 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:
        getContextManager in interface org.eclipse.microprofile.context.spi.ContextManagerProvider
      • getContextManager

        public SmallRyeContextManager getContextManager​(ClassLoader classLoader)
        Specified by:
        getContextManager in interface org.eclipse.microprofile.context.spi.ContextManagerProvider
      • getContextManagerBuilder

        public SmallRyeContextManager.Builder getContextManagerBuilder()
        Specified by:
        getContextManagerBuilder in interface org.eclipse.microprofile.context.spi.ContextManagerProvider
      • registerContextManager

        public void registerContextManager​(org.eclipse.microprofile.context.spi.ContextManager manager,
                                           ClassLoader classLoader)
        Specified by:
        registerContextManager in interface org.eclipse.microprofile.context.spi.ContextManagerProvider
      • releaseContextManager

        public void releaseContextManager​(org.eclipse.microprofile.context.spi.ContextManager manager)
        Specified by:
        releaseContextManager in interface org.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, unlike getContextManager(ClassLoader).
        Parameters:
        classLoader - The class loader
        Returns:
        The context manager for the class loader, or null if none could be found