Class QuarkusJndiService
- java.lang.Object
-
- io.quarkus.hibernate.orm.runtime.customized.QuarkusJndiService
-
- All Implemented Interfaces:
Serializable
,org.hibernate.engine.jndi.spi.JndiService
,org.hibernate.service.Service
final class QuarkusJndiService extends Object implements org.hibernate.engine.jndi.spi.JndiService
Intentionally implementing these methods as no-op: some Hibernate ORM internal components currently require being able to attempt a lookup even when JNDI is not being used. Since we don't use JNDI in Quarkus we might as well short-circuit these as an additional precaution. In future versions of Hibernate ORM we might be able to throw an exception instead.
-
-
Constructor Summary
Constructors Constructor Description QuarkusJndiService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(String jndiName, NamespaceChangeListener listener)
void
bind(String jndiName, Object value)
Object
locate(String jndiName)
void
unbind(String jndiName)
-
-
-
Method Detail
-
locate
public Object locate(String jndiName)
- Specified by:
locate
in interfaceorg.hibernate.engine.jndi.spi.JndiService
-
bind
public void bind(String jndiName, Object value)
- Specified by:
bind
in interfaceorg.hibernate.engine.jndi.spi.JndiService
-
unbind
public void unbind(String jndiName)
- Specified by:
unbind
in interfaceorg.hibernate.engine.jndi.spi.JndiService
-
addListener
public void addListener(String jndiName, NamespaceChangeListener listener)
- Specified by:
addListener
in interfaceorg.hibernate.engine.jndi.spi.JndiService
-
-