Package org.wildfly.naming.client.remote
Class RemoteNamingContextFactory
- java.lang.Object
-
- org.wildfly.naming.client.remote.RemoteNamingContextFactory
-
- All Implemented Interfaces:
NamingContextFactory
@MetaInfServices public final class RemoteNamingContextFactory extends Object implements NamingContextFactory
A naming context factory supporting JBoss Remoting-based transport.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description RemoteNamingContextFactory()Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextcreateRootContext(NamingProvider namingProvider, String nameScheme, FastHashtable<String,Object> env, ProviderEnvironment providerEnvironment)Create the root context for this naming scheme.booleansupportsUriScheme(NamingProvider namingProvider, String nameScheme)Determine if this factory supports the given provider and name scheme.
-
-
-
Method Detail
-
supportsUriScheme
public boolean supportsUriScheme(NamingProvider namingProvider, String nameScheme)
Description copied from interface:NamingContextFactoryDetermine if this factory supports the given provider and name scheme. This method is called when a JNDI operation is executed on an initial context to determine which provider should handle the operation.A context factory should evaluate the provider's type to determine if the provider is compatible with the naming scheme, and should not support producing contexts for unknown providers.
- Specified by:
supportsUriSchemein interfaceNamingContextFactory- Parameters:
namingProvider- the naming provider which is handling this request, ornullif it is localnameScheme- the JNDI name scheme, ornullif no name scheme was given- Returns:
trueif this factory supports the given scheme,falseotherwise
-
createRootContext
public Context createRootContext(NamingProvider namingProvider, String nameScheme, FastHashtable<String,Object> env, ProviderEnvironment providerEnvironment) throws NamingException
Description copied from interface:NamingContextFactoryCreate the root context for this naming scheme. The context should capture any locally relevant information, such as the relevant local security or authentication context.- Specified by:
createRootContextin interfaceNamingContextFactory- Parameters:
namingProvider- the naming provider which is handling this request, ornullif it is localnameScheme- the scheme in the name, ornullif there is no name URL schemeenv- 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
-
-