public interface NamingContextFactory
| Modifier and Type | Method and Description |
|---|---|
Context |
createRootContext(NamingProvider namingProvider,
String nameScheme,
FastHashtable<String,Object> env,
ProviderEnvironment providerEnvironment)
Create the root context for this naming scheme.
|
boolean |
supportsUriScheme(NamingProvider namingProvider,
String nameScheme)
Determine if this factory supports the given provider and name scheme.
|
boolean supportsUriScheme(NamingProvider namingProvider, String nameScheme)
A context factory should evaluate the provider's type to determine if the provider is compatible with the naming scheme, and should not support producing contexts for unknown providers.
namingProvider - the naming provider which is handling this request, or null if it is localnameScheme - the JNDI name scheme, or null if no name scheme was giventrue if this factory supports the given scheme, false otherwiseContext createRootContext(NamingProvider namingProvider, String nameScheme, FastHashtable<String,Object> env, ProviderEnvironment providerEnvironment) throws NamingException
namingProvider - the naming provider which is handling this request, or null if it is localnameScheme - the scheme in the name, or null if there is no name URL schemeenv - a copy of the environment which may be consumed directly by the provider (not null)providerEnvironment - the provider environment (not null)null)NamingException - if the root context creation failed for some reasonCopyright © 2017 JBoss by Red Hat. All rights reserved.