共用方式為


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.

Interfaces

AzureKeyCredentialTrait<T>

An com.azure.core.client.traits providing a consistent interface for setting AzureKeyCredential.

AzureNamedKeyCredentialTrait<T>

An com.azure.core.client.traits providing a consistent interface for setting AzureNamedKeyCredential.

AzureSasCredentialTrait<T>

An com.azure.core.client.traits providing a consistent interface for setting AzureSasCredential.

ConfigurationTrait<T>

An com.azure.core.client.traits providing a consistent interface for setting Configuration.

ConnectionStringTrait<T>

An com.azure.core.client.traits providing a consistent interface for setting connection strings.

EndpointTrait<T>

An com.azure.core.client.traits providing a consistent interface for setting service endpoints.

HttpTrait<T>

An com.azure.core.client.traits providing a consistent interface for configuration of HTTP-specific settings.

KeyCredentialTrait<T>

An com.azure.core.client.traits providing a consistent interface for setting KeyCredential.

TokenCredentialTrait<T>

An com.azure.core.client.traits providing a consistent interface for setting TokenCredential.