ResolutionStrategy Interface

Interface for a resolution strategy.

CommerceExtension

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.

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.

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.

public CommerceExtension.Resolution resolve()

Type: CommerceExtension.Resolution

Resolution object that indicates how the resolution strategy was resolved.

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