Package org.ldaptive
Interface Freezable
-
- All Known Implementing Classes:
AbstractAuthenticationHandler,AbstractBinaryAttributeHandler,AbstractConfig,AbstractConnectionPool,AbstractConnectionStrategy,AbstractConnectionValidator,AbstractEntryHandler,AbstractFollowReferralHandler,AbstractFollowSearchReferralHandler,AbstractFreezable,AbstractMessageFunctionalEntryHandler,AbstractNamedSchemaElement,AbstractOperationConnectionValidator,AbstractOperationFactory,AbstractPassiveConnectionStrategy,AbstractPruneStrategy,AbstractSchemaElement,AbstractSearchEntryResolver,AbstractSearchOperationFactory,ActiveDirectoryAuthenticationResponseHandler,ActivePassiveConnectionStrategy,AgePruneStrategy,AggregateAuthenticationHandler,AggregateAuthenticationResponseHandler,AggregateDnResolver,AggregateEntryResolver,AttributeType,AuthenticationResponse,Authenticator,AuthorizationIdentityEntryResolver,BindConnectionInitializer,BindConnectionPassivator,BlockingConnectionPool,CaseChangeEntryHandler,CompareAuthenticationHandler,CompareConnectionValidator,ConnectionConfig,DefaultConnectionFactory,DefaultLdapEntryManager,DITContentRule,DITStructureRule,Dn,DnAttributeEntryHandler,DnsResolverConnectionStrategy,DnsSrvConnectionStrategy,EDirectoryAuthenticationResponseHandler,Extensions,FollowAddReferralHandler,FollowCompareReferralHandler,FollowDeleteReferralHandler,FollowModifyDnReferralHandler,FollowModifyReferralHandler,FollowSearchReferralHandler,FollowSearchResultReferenceHandler,FormatDnResolver,FreeIPAAuthenticationResponseHandler,IdlePruneStrategy,KeyStoreCredentialConfig,LdapAttribute,LdapEntry,MatchingRule,MatchingRuleUse,MergeAttributeEntryHandler,MessageFunctional,MessageFunctional.BiConsumer,MessageFunctional.Consumer,MessageFunctional.Function,NameForm,ObjectClass,ObjectGuidHandler,ObjectSidHandler,PagedResultsClient,PooledConnectionFactory,PrimaryGroupIdHandler,RandomConnectionStrategy,RangeEntryHandler,RecursiveResultHandler,RoundRobinConnectionStrategy,SaslConfig,Schema,SearchConnectionValidator,SearchDnResolver,SearchEntryResolver,SearchResponse,SearchResultReference,SearchRoleResolver,SimpleBindAuthenticationHandler,SingleConnectionFactory,SslConfig,Syntax,ThreadPoolConfig,UnicodePwdAttribute,VirtualListViewClient,WhoAmIEntryResolver,X509CredentialConfig
public interface FreezableInterface 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 voidassertMutable()Asserts that this object is in a state to permit mutations.voidfreeze()Freezes this object, making it immutable.booleanisFrozen()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).
-
-