Package com.azure.core.client.traits
package com.azure.core.client.traits
This package contains interfaces that represent common cross-cutting aspects of functionality offered by libraries
in the Azure SDK for Java. Each interface is referred to as a 'trait', and classes that implement the interface are
said to have that trait. There are additional traits related to AMQP use cases in the
com.azure.core.amqp.client.traits
package.
The particular focus of traits in the Azure SDK for Java is to enable higher-level libraries the ability to more abstractly configure client libraries as part of their builders, prior to the client itself being instantiated. By doing this, these high-level libraries are able to reason about functionality more simply. It is important to appreciate that despite the availability of these cross-cutting traits, there is no promise that configuration of each builder can simply be a matter of providing the same arguments for all builders! Each builder must be configured appropriately for its requirements, or else runtime failures may occur when the builder is asked to create the associated client.
-
ClassDescriptionAzureKeyCredentialTrait<T extends AzureKeyCredentialTrait<T>>An
Azure SDK for Java trait
providing a consistent interface for settingAzureKeyCredential
.AzureNamedKeyCredentialTrait<T extends AzureNamedKeyCredentialTrait<T>>AnAzure SDK for Java trait
providing a consistent interface for settingAzureNamedKeyCredential
.AzureSasCredentialTrait<T extends AzureSasCredentialTrait<T>>AnAzure SDK for Java trait
providing a consistent interface for settingAzureSasCredential
.ConfigurationTrait<T extends ConfigurationTrait<T>>AnAzure SDK for Java trait
providing a consistent interface for settingConfiguration
.ConnectionStringTrait<T extends ConnectionStringTrait<T>>AnAzure SDK for Java trait
providing a consistent interface for setting connection strings.EndpointTrait<T extends EndpointTrait<T>>AnAzure SDK for Java trait
providing a consistent interface for setting service endpoints.AnAzure SDK for Java trait
providing a consistent interface for configuration of HTTP-specific settings.TokenCredentialTrait<T extends TokenCredentialTrait<T>>AnAzure SDK for Java trait
providing a consistent interface for settingTokenCredential
.