Newer Version Available

This content describes an older version of this product. View Latest

ResolutionStrategy Interface

Interface for a resolution strategy.

Namespace

CommerceExtension

Usage

When you implement this interface, you can register your apex class just like an extension provider class. Your class can then conditionally decide how to handle each extension invocation. You can delegate to a specific extension provider, you can execute default domain logic, or you can execute no logic at all.

ResolutionStrategy Methods

The following are methods for ResolutionStrategy.

resolve()

Returns a resolution object, which indicates how the resolution strategy was resolved. The resolution indicates whether default logic, extension provider logic, or no logic is executed.

Signature

public CommerceExtension.Resolution resolve()

Return Value

Type: CommerceExtension.Resolution

Resolution object that indicates how the resolution strategy was resolved.

ResolutionStrategy Example Implementation

This is an example implementation of the CommerceExtension.ResolutionStrategy interface.