InitialContext
E836369
InitialContext is the primary JNDI class that provides the starting point for performing naming and directory operations in Java applications.
Statements (49)
| Predicate | Object |
|---|---|
| instanceOf |
JNDI context implementation
ⓘ
Java class ⓘ |
| abbreviationOf | JNDI NERFINISHED ⓘ |
| canThrow | NamingException ⓘ |
| category | Java enterprise infrastructure ⓘ |
| configuredBy | JNDI environment properties ⓘ |
| definedInPackage | javax.naming NERFINISHED ⓘ |
| dependsOn | JNDI service provider ⓘ |
| documentedIn | Java Platform Standard Edition API Specification NERFINISHED ⓘ |
| extends | Context ⓘ |
| hasConstructor |
InitialContext()
ⓘ
InitialContext(java.util.Hashtable env) ⓘ |
| implements | Context interface ⓘ |
| introducedIn | Java 2 Platform, Standard Edition NERFINISHED ⓘ |
| lifecycle | should be closed when no longer needed ⓘ |
| partOfAPI | Java Naming and Directory Interface NERFINISHED ⓘ |
| provides |
starting point for directory operations
ⓘ
starting point for naming operations ⓘ |
| readsProperty |
java.naming.factory.initial
ⓘ
java.naming.factory.url.pkgs ⓘ java.naming.provider.url ⓘ java.naming.security.credentials ⓘ java.naming.security.principal ⓘ |
| relatedTo |
Context
ⓘ
DirContext ⓘ InitialDirContext NERFINISHED ⓘ |
| supportsMethod |
bind(String name, Object obj)
ⓘ
close() ⓘ createSubcontext(String name) ⓘ destroySubcontext(String name) ⓘ getEnvironment() ⓘ list(String name) ⓘ listBindings(String name) ⓘ lookup(String name) ⓘ rebind(String name, Object obj) ⓘ unbind(String name) ⓘ |
| threadSafety | not guaranteed to be thread-safe ⓘ |
| typicalUsagePattern | new InitialContext().lookup("java:comp/env/...") ⓘ |
| usedFor |
DataSource lookup
ⓘ
EJB lookup ⓘ JMS resource lookup ⓘ JNDI lookups ⓘ accessing directory services ⓘ environment naming context access ⓘ looking up objects in naming services ⓘ resource lookup in Java EE ⓘ |
| usedIn |
Jakarta EE applications
ⓘ
Java EE applications ⓘ Java SE applications ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.