org.wdssii.webindex.servlet
Class WebIndexFactory

java.lang.Object
  extended by org.wdssii.webindex.servlet.WebIndexFactory
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware

public class WebIndexFactory
extends Object
implements org.springframework.beans.factory.BeanFactoryAware


Field Summary
private  org.springframework.beans.factory.BeanFactory beanFactory
           
private  Map<String,WebIndexDAO> daoCache
           
private  org.apache.commons.logging.Log log
           
private  String sourcePrefix
           
private  String sourceSuffix
           
 
Constructor Summary
WebIndexFactory()
           
 
Method Summary
private  WebIndexDAO createNewDAOInstance(String source)
           
 WebIndexDAO getDAO(String source)
           
 String getIndexDir(String source)
           
 String getSourcePrefix()
           
 String getSourceSuffix()
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory arg0)
           
 void setSourcePrefix(String sourcePrefix)
           
 void setSourceSuffix(String sourceSuffix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final org.apache.commons.logging.Log log

daoCache

private Map<String,WebIndexDAO> daoCache

beanFactory

private org.springframework.beans.factory.BeanFactory beanFactory

sourcePrefix

private String sourcePrefix

sourceSuffix

private String sourceSuffix
Constructor Detail

WebIndexFactory

public WebIndexFactory()
Method Detail

getSourcePrefix

public String getSourcePrefix()

setSourcePrefix

public void setSourcePrefix(String sourcePrefix)

getSourceSuffix

public String getSourceSuffix()

setSourceSuffix

public void setSourceSuffix(String sourceSuffix)

getIndexDir

public String getIndexDir(String source)

createNewDAOInstance

private WebIndexDAO createNewDAOInstance(String source)

getDAO

public WebIndexDAO getDAO(String source)

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory arg0)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException