public interface CustomerFactory extends KeyResolver, XMLizable
Customer
is an external
entity that promotion depends upon. An implementation of this interface is
responsible for looking up and instantiating the Customer external
entity. The implementation must be registered with the
ExternalEntityFactoryRegistry
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
Customer |
getCustomer(CustomerKey key,
java.util.Hashtable NVP)
This method returns the Customer object having this CustomerKey.
|
lookup, reverseLookup
static final java.lang.String COPYRIGHT
Customer getCustomer(CustomerKey key, java.util.Hashtable NVP) throws DependencyInstantiationException, DependencyMissingException
key
- CustomerKey
representing a customer.NVP
- Additional name-value pairs used to resolve the key to a Customer object.Customer
object found for the customer key.DependencyInstantiationException
- is thrown when an error is encountered on customer instantiation.DependencyMissingException
- is thrown when the customer to get does not exist.