de.phleisch.app.itsucks.job.download.impl
Class DataRetrieverManager

java.lang.Object
  extended by de.phleisch.app.itsucks.job.download.impl.DataRetrieverManager
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware

public class DataRetrieverManager
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware

Manages the data retriever for every protocol. It is initialized by spring.

Author:
olli

Constructor Summary
DataRetrieverManager()
           
 
Method Summary
 DataRetrieverFactory getRetrieverFactoryForProtocol(java.lang.String pProtocol)
          Gets an data retriever for the given protocol (http, ftp, etc.).
 void setApplicationContext(org.springframework.context.ApplicationContext pContext)
           
 void setRetriever(java.util.Map<java.lang.String,java.lang.String> pRetriever)
          Sets the retriever map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataRetrieverManager

public DataRetrieverManager()
Method Detail

getRetrieverFactoryForProtocol

public DataRetrieverFactory getRetrieverFactoryForProtocol(java.lang.String pProtocol)
Gets an data retriever for the given protocol (http, ftp, etc.).

Parameters:
pProtocol -
Returns:

setRetriever

public void setRetriever(java.util.Map<java.lang.String,java.lang.String> pRetriever)
Sets the retriever map.

Parameters:
pRetriever -

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext pContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException


Copyright © 2010. All Rights Reserved.