Package io.quarkus.bootstrap.naming
Class DisabledInitialContextManager
java.lang.Object
io.quarkus.bootstrap.naming.DisabledInitialContextManager
- All Implemented Interfaces:
InitialContextFactoryBuilder
Delegate used by Quarkus to disable JNDI.
This must be in a parent-first artifact as the initial context manager
cannot be replaced
and 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 -
Method Summary
Modifier and TypeMethodDescriptioncreateInitialContextFactory
(Hashtable<?, ?> environment) static void
register()
-
Constructor Details
-
DisabledInitialContextManager
public DisabledInitialContextManager()
-
-
Method Details
-
register
public static void register() -
createInitialContextFactory
public InitialContextFactory createInitialContextFactory(Hashtable<?, ?> environment) throws NamingException- Specified by:
createInitialContextFactory
in interfaceInitialContextFactoryBuilder
- Throws:
NamingException
-