Package org.wildfly.naming.client
Interface NamingProviderFactory
-
- All Known Implementing Classes:
RemoteNamingProviderFactory
public interface NamingProviderFactoryA provider supported by the unified WildFly Naming dispatcher.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NamingProvidercreateProvider(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
boolean supportsUriScheme(String providerScheme, FastHashtable<String,Object> env)
Determine if this provider supports the givenPROVIDER_URLscheme.- 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
NamingProvider createProvider(FastHashtable<String,Object> env, ProviderEnvironment providerEnvironment) throws NamingException
Create the naming provider instance for a provider URI.- 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
-
-