public static final class ActiveDirectoryDnsLocator.Builder extends Object
ActiveDirectoryDnsLocator
with a fluent interface.
Notes:
IllegalStateException
is thrown if a property is modified after this builder
has already been used to build an ActiveDirectoryDnsLocator
, simply create a new
builder in this case.Constructor and Description |
---|
Builder()
Constructs a new builder for
ActiveDirectoryDnsLocator . |
Modifier and Type | Method and Description |
---|---|
ActiveDirectoryDnsLocator.Builder |
additionalProperty(String name,
Object value)
Sets an additional property not available through the builder interface.
|
ActiveDirectoryDnsLocator |
build()
Builds an
ActiveDirectoryDnsLocator and marks this builder as non-modifiable for
future use. |
ActiveDirectoryDnsLocator.Builder |
contextFactory(String contextFactory)
Sets the context factory for this service locator.
|
public Builder()
ActiveDirectoryDnsLocator
.public ActiveDirectoryDnsLocator.Builder contextFactory(String contextFactory)
contextFactory
- the context factory class nameNullPointerException
- if contextFactory
is nullIllegalArgumentException
- if contextFactory
is emptypublic ActiveDirectoryDnsLocator.Builder additionalProperty(String name, Object value)
name
- name of the propertyvalue
- value of the propertyNullPointerException
- if name
is nullIllegalArgumentException
- if value
is emptypublic ActiveDirectoryDnsLocator build()
ActiveDirectoryDnsLocator
and marks this builder as non-modifiable for
future use. You may call this method as often as you like, it will return a new
ActiveDirectoryDnsLocator
instance on every call.ActiveDirectoryDnsLocator
objectIllegalStateException
- if a combination of necessary attributes is not setCopyright © 2016–2021 Michael Osipov. All rights reserved.