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 Details

  • Constructor Details

    • RemoteNamingProviderFactory

      public RemoteNamingProviderFactory()
  • Method Details

    • supportsUriScheme

      public boolean supportsUriScheme(String providerScheme, FastHashtable<String,Object> env)
      Description copied from interface: NamingProviderFactory
      Determine if this provider supports the given PROVIDER_URL scheme.
      Specified by:
      supportsUriScheme in interface NamingProviderFactory
      Parameters:
      providerScheme - the provider URL scheme, or null if no provider URL was given
      env - a copy of the environment which may be used to determine if this provider supports the given scheme
      Returns:
      true if this provider supports the given schemes, false otherwise
    • createProvider

      public RemoteNamingProvider createProvider(FastHashtable<String,Object> env, ProviderEnvironment providerEnvironment) throws NamingException
      Description copied from interface: NamingProviderFactory
      Create the naming provider instance for a provider URI.
      Specified by:
      createProvider in interface NamingProviderFactory
      Parameters:
      env - a copy of the environment which may be consumed directly by the provider (not null)
      providerEnvironment - the provider environment (not null)
      Returns:
      the root context (must not be null)
      Throws:
      NamingException - if the root context creation failed for some reason