com.elasticpath.persistence.impl
Class ElasticPathDaoXmlFileImpl

java.lang.Object
  extended by com.elasticpath.persistence.impl.ElasticPathDaoXmlFileImpl
All Implemented Interfaces:
ElasticPathDao

public class ElasticPathDaoXmlFileImpl
extends java.lang.Object
implements ElasticPathDao

Load elastic path configuration from an xml file. If you an alternative configuration file is not given, the default one is "commerce-config.xml". The xml configuration file must be put under WEB-INF directory.


Constructor Summary
ElasticPathDaoXmlFileImpl()
          Constructor.
 
Method Summary
 void loadElasticPath(ElasticPath elasticPath)
          Load the elastic path configuration.
 void loadGuidedNavigationConfig(ElasticPath elasticPath)
          Load the guided navigation config.
 void setElasticPathFile(java.lang.String elasticPathFile)
          Set the name of the alternative elastic path xml configuration file.
 void setGuidedNavigationFile(java.lang.String guidedNavigationFile)
          Set the name of the alternative guided navigation xml configuration file.
 void setPaymentTypeFactory(PaymentTypeFactory paymentTypeFactory)
          Set the PaymentTypeFactory singleton.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElasticPathDaoXmlFileImpl

public ElasticPathDaoXmlFileImpl()
Constructor. Specify the sections with custom parsers here.

Method Detail

loadElasticPath

public void loadElasticPath(ElasticPath elasticPath)
                     throws EpPersistenceException
Load the elastic path configuration.

Specified by:
loadElasticPath in interface ElasticPathDao
Parameters:
elasticPath - the ElasticPath instance to load configuration into.
Throws:
EpPersistenceException - if something goes wrong.

loadGuidedNavigationConfig

public void loadGuidedNavigationConfig(ElasticPath elasticPath)
                                throws EpPersistenceException
Load the guided navigation config.

Specified by:
loadGuidedNavigationConfig in interface ElasticPathDao
Parameters:
elasticPath - the given elasticPath
Throws:
EpPersistenceException - if something goes wrong.

setElasticPathFile

public void setElasticPathFile(java.lang.String elasticPathFile)
Set the name of the alternative elastic path xml configuration file. If it is not set, the default one -- "commerce-config.xml" will be used.

Parameters:
elasticPathFile - the xmlconfiguration file name

setGuidedNavigationFile

public void setGuidedNavigationFile(java.lang.String guidedNavigationFile)
Set the name of the alternative guided navigation xml configuration file. If it is not set, the default one -- "guided-navigation.xml" will be used.

Parameters:
guidedNavigationFile - the guidedNavigationFile to set

setPaymentTypeFactory

public void setPaymentTypeFactory(PaymentTypeFactory paymentTypeFactory)
Set the PaymentTypeFactory singleton.

Parameters:
paymentTypeFactory - the paymentTypeFactory singleton.