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
-
-
Constructor Summary
Constructors Constructor Description RemoteNamingProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteNamingProvidercreateProvider(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.
-
-
-
Method Detail
-
supportsUriScheme
public boolean supportsUriScheme(String providerScheme, FastHashtable<String,Object> env)
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 NamingException
Description 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
-
-