public final class EJBNamingContextFactory extends Object implements NamingContextFactory
ejb:
.Constructor and Description |
---|
EJBNamingContextFactory()
Construct a new instance.
|
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.
|
public EJBNamingContextFactory()
public boolean supportsUriScheme(NamingProvider namingProvider, String nameScheme)
NamingContextFactory
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.
supportsUriScheme
in interface NamingContextFactory
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
otherwisepublic Context createRootContext(NamingProvider namingProvider, String nameScheme, FastHashtable<String,Object> env, ProviderEnvironment providerEnvironment) throws NamingException
NamingContextFactory
createRootContext
in interface NamingContextFactory
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 © 2019 JBoss by Red Hat. All rights reserved.