public static final class ProviderEnvironment.Builder extends Object
ProviderEnvironment instances.| Constructor and Description |
|---|
Builder()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ProviderEnvironment.Builder |
addProviderUri(URI uri)
Add a provider URL to the environment being built.
|
ProviderEnvironment.Builder |
addProviderUris(Collection<URI> uris)
Add a provider URL to the environment being built.
|
ProviderEnvironment |
build()
Build the provider environment from a point-in-time snapshot of the values in this builder.
|
ProviderEnvironment.Builder |
populateFromEnvironment(Map<String,?> environment)
Populate this builder from the given JNDI environment map.
|
ProviderEnvironment.Builder |
setAuthenticationContextSupplier(Supplier<AuthenticationContext> authenticationContextSupplier)
Set the authentication context supplier to use.
|
public ProviderEnvironment.Builder addProviderUri(URI uri)
uri - the URI of the provider (must not be null)public ProviderEnvironment.Builder addProviderUris(Collection<URI> uris)
uris - the URIs of the provider(s) (must not be null or have null members)public ProviderEnvironment.Builder setAuthenticationContextSupplier(Supplier<AuthenticationContext> authenticationContextSupplier)
authenticationContextSupplier - the authentication context supplier to use (must not be null)public ProviderEnvironment.Builder populateFromEnvironment(Map<String,?> environment) throws NamingException
environment - the environment map (must not be null)ConfigurationException - if the given environment is invalid for some reasonNamingException - if some other error occurredpublic ProviderEnvironment build()
Copyright © 2017 JBoss by Red Hat. All rights reserved.