Package org.wildfly.naming.client.remote
Class RemoteNamingProviderFactory
java.lang.Object
org.wildfly.naming.client.remote.RemoteNamingProviderFactory
- All Implemented Interfaces:
NamingProviderFactory
@MetaInfServices
public final class RemoteNamingProviderFactory
extends Object
implements NamingProviderFactory
- Author:
- David M. Lloyd
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProvider(FastHashtable<String, Object> env, ProviderEnvironment providerEnvironment) Create the naming provider instance for a provider URI.booleansupportsUriScheme(String providerScheme, FastHashtable<String, Object> env) Determine if this provider supports the givenPROVIDER_URLscheme.
-
Field Details
-
ENDPOINT
- See Also:
-
-
Constructor Details
-
RemoteNamingProviderFactory
public RemoteNamingProviderFactory()
-
-
Method Details
-
supportsUriScheme
Description copied from interface:NamingProviderFactoryDetermine if this provider supports the givenPROVIDER_URLscheme.- Specified by:
supportsUriSchemein interfaceNamingProviderFactory- Parameters:
providerScheme- the provider URL scheme, ornullif no provider URL was givenenv- a copy of the environment which may be used to determine if this provider supports the given scheme- Returns:
trueif this provider supports the given schemes,falseotherwise
-
createProvider
public RemoteNamingProvider createProvider(FastHashtable<String, Object> env, ProviderEnvironment providerEnvironment) throws NamingExceptionDescription copied from interface:NamingProviderFactoryCreate the naming provider instance for a provider URI.- Specified by:
createProviderin interfaceNamingProviderFactory- Parameters:
env- a copy of the environment which may be consumed directly by the provider (notnull)providerEnvironment- the provider environment (notnull)- Returns:
- the root context (must not be
null) - Throws:
NamingException- if the root context creation failed for some reason
-