@MetaInfServices public final class RemoteNamingProviderFactory extends Object implements NamingProviderFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
USE_SEPARATE_CONNECTION
An environment attribute indicating that a separate Remoting connection should be used for this initial context.
|
| Constructor and Description |
|---|
RemoteNamingProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
NamingProvider |
createProvider(URI providerUri,
FastHashtable<String,Object> env)
Create the naming provider instance for a provider URI.
|
boolean |
supportsUriScheme(String providerScheme)
Determine if this provider supports the given
PROVIDER_URL scheme. |
public static final String USE_SEPARATE_CONNECTION
Separate connections use the captured authentication context for authentication decisions unless a principal or authentication configuration is set in the environment.
A separate connection's lifespan is bound to the lifespan of the InitialContext that it belongs to. It
must be closed to prevent possible resource exhaustion.
public boolean supportsUriScheme(String providerScheme)
NamingProviderFactoryPROVIDER_URL scheme.supportsUriScheme in interface NamingProviderFactoryproviderScheme - the provider URL scheme, or null if no provider URL was giventrue if this provider supports the given schemes, false otherwisepublic NamingProvider createProvider(URI providerUri, FastHashtable<String,Object> env) throws NamingException
NamingProviderFactorycreateProvider in interface NamingProviderFactoryproviderUri - the URI from the Context.PROVIDER_URL environment property, or null if none was givenenv - a copy of the environment which may be consumed directly by the provider (not null)null)NamingException - if the root context creation failed for some reasonCopyright © 2016 JBoss by Red Hat. All rights reserved.