@ProviderType
public interface CommerceServiceFactory
CommerceServiceFactory constructs an implementation of a CommerceService,
which is the root of the Commerce API. Other classes are fetched through the CommerceService.
Individual resources in the repository can nominate a particular implementation of the
CommerceService through their CommerceConstants.PN_COMMERCE_PROVIDER properties.
A CommerceService is then normally fetched using the adapter pattern:
resource.adaptTo(CommerceService.class)| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_COMMERCE_PROVIDER
Name of the service property indicating the particular implementation this factory provides,
e.g.
|
static java.lang.String |
PROPERTY_COMMERCE_PROVIDER_LABEL
Optional property used to describe this commerce provider in a user-interface (such as to allow
its selection from a drop-down menu).
|
| Modifier and Type | Method and Description |
|---|---|
CommerceService |
getCommerceService(Resource res)
Get a
CommerceService implementation for a resource. |
static final java.lang.String PROPERTY_COMMERCE_PROVIDER
CommerceConstants.PN_COMMERCE_PROVIDER, which names a resource
property whose value is matched at runtime with the service property to pick a factory.static final java.lang.String PROPERTY_COMMERCE_PROVIDER_LABEL
CommerceService getCommerceService(Resource res)
CommerceService implementation for a resource.res - Copyright © 2010 - 2023 Adobe. All Rights Reserved