Package io.quarkus.bootstrap.naming
Class DisabledInitialContextManager
- java.lang.Object
-
- io.quarkus.bootstrap.naming.DisabledInitialContextManager
-
- All Implemented Interfaces:
InitialContextFactoryBuilder
public class DisabledInitialContextManager extends Object implements InitialContextFactoryBuilder
Delegate used by Quarkus to disable JNDI.This must be in a parent-first artifact as the initial context manager
cannot be replacedand will never get garbage-collected due to being referenced from a sticky class (NamingManager), so its classloader will never get garbage-collected either.
-
-
Constructor Summary
Constructors Constructor Description DisabledInitialContextManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InitialContextFactorycreateInitialContextFactory(Hashtable<?,?> environment)static voidregister()
-
-
-
Method Detail
-
register
public static void register()
-
createInitialContextFactory
public InitialContextFactory createInitialContextFactory(Hashtable<?,?> environment) throws NamingException
- Specified by:
createInitialContextFactoryin interfaceInitialContextFactoryBuilder- Throws:
NamingException
-
-