org.broadleafcommerce.core.pricing.service.fulfillment
Class SimpleFulfillmentLocationResolver

java.lang.Object
  extended by org.broadleafcommerce.core.pricing.service.fulfillment.SimpleFulfillmentLocationResolver
All Implemented Interfaces:
FulfillmentLocationResolver

public class SimpleFulfillmentLocationResolver
extends Object
implements FulfillmentLocationResolver

Default implementation of FulfillmentLocationResolver that stores a single Address. Useful for businesses that do not have a complicated warehouse solution and fulfill from a single location.

Author:
Phillip Verheyden

Field Summary
protected  Address address
           
 
Constructor Summary
SimpleFulfillmentLocationResolver()
           
 
Method Summary
 Address getAddress()
           
 Address resolveLocationForFulfillmentGroup(FulfillmentGroup group)
          This method should give an Address that a particular FulfillmentGroup will be fulfilled from.
 void setAddress(Address address)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

protected Address address
Constructor Detail

SimpleFulfillmentLocationResolver

public SimpleFulfillmentLocationResolver()
Method Detail

resolveLocationForFulfillmentGroup

public Address resolveLocationForFulfillmentGroup(FulfillmentGroup group)
Description copied from interface: FulfillmentLocationResolver
This method should give an Address that a particular FulfillmentGroup will be fulfilled from. Implementations could store this information in the database or integrate with an existing warehouse solution.

Specified by:
resolveLocationForFulfillmentGroup in interface FulfillmentLocationResolver
Returns:
the Address that group should be fulfilled from

getAddress

public Address getAddress()

setAddress

public void setAddress(Address address)


Copyright © 2012. All Rights Reserved.