Package org.ldaptive
Interface Freezable
-
- All Known Implementing Classes:
AbstractAuthenticationHandler
,AbstractBinaryAttributeHandler
,AbstractConfig
,AbstractConnectionPool
,AbstractConnectionStrategy
,AbstractConnectionValidator
,AbstractEntryHandler
,AbstractFollowReferralHandler
,AbstractFollowSearchReferralHandler
,AbstractFreezable
,AbstractMessageFunctionalEntryHandler
,AbstractOperationConnectionValidator
,AbstractOperationFactory
,AbstractPassiveConnectionStrategy
,AbstractPruneStrategy
,AbstractSearchEntryResolver
,AbstractSearchOperationFactory
,ActiveDirectoryAuthenticationResponseHandler
,ActivePassiveConnectionStrategy
,AgePruneStrategy
,AggregateAuthenticationHandler
,AggregateAuthenticationResponseHandler
,AggregateDnResolver
,AggregateEntryResolver
,AuthenticationResponse
,Authenticator
,AuthorizationIdentityEntryResolver
,BindConnectionInitializer
,BindConnectionPassivator
,BlockingConnectionPool
,CaseChangeEntryHandler
,CompareAuthenticationHandler
,CompareConnectionValidator
,ConnectionConfig
,DefaultConnectionFactory
,DefaultLdapEntryManager
,Dn
,DnAttributeEntryHandler
,DnsResolverConnectionStrategy
,DnsSrvConnectionStrategy
,EDirectoryAuthenticationResponseHandler
,FollowAddReferralHandler
,FollowCompareReferralHandler
,FollowDeleteReferralHandler
,FollowModifyDnReferralHandler
,FollowModifyReferralHandler
,FollowSearchReferralHandler
,FollowSearchResultReferenceHandler
,FormatDnResolver
,FreeIPAAuthenticationResponseHandler
,IdlePruneStrategy
,KeyStoreCredentialConfig
,LdapAttribute
,LdapEntry
,MergeAttributeEntryHandler
,MessageFunctional
,MessageFunctional.BiConsumer
,MessageFunctional.Consumer
,MessageFunctional.Function
,ObjectGuidHandler
,ObjectSidHandler
,PagedResultsClient
,PooledConnectionFactory
,PrimaryGroupIdHandler
,RandomConnectionStrategy
,RangeEntryHandler
,RecursiveResultHandler
,RoundRobinConnectionStrategy
,SaslConfig
,SearchConnectionValidator
,SearchDnResolver
,SearchEntryResolver
,SearchResponse
,SearchResultReference
,SearchRoleResolver
,SimpleBindAuthenticationHandler
,SingleConnectionFactory
,SslConfig
,ThreadPoolConfig
,UnicodePwdAttribute
,VirtualListViewClient
,WhoAmIEntryResolver
,X509CredentialConfig
public interface Freezable
Interface for objects that can be made immutable after creation by invoking thefreeze()
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
assertMutable()
Asserts that this object is in a state to permit mutations.void
freeze()
Freezes this object, making it immutable.boolean
isFrozen()
Determines whether this object is frozen, i.e. immutable.
-
-
-
Method Detail
-
freeze
void freeze()
Freezes this object, making it immutable.
-
isFrozen
boolean isFrozen()
Determines whether this object is frozen, i.e. immutable.- Returns:
- True if
freeze()
has been invoked, false otherwise.
-
assertMutable
void assertMutable()
Asserts that this object is in a state to permit mutations. Classes that implement this interface should invoke this method prior to performing any mutation of internal state as a means of implementing the "frozen" usage contract.- Throws:
IllegalStateException
- if this object is frozen (i.e. immutable).
-
-