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

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

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

Factory to create new Jobs. Internally spring is used, but this factory also implements the feature to inject dependencies into deserialized jobs and jobs not created over spring.

Author:
olli

Constructor Summary
DownloadJobFactory()
           
 
Method Summary
 UrlDownloadJob createDownloadJob()
           
 void injectDependencies(Job pJob)
           
 void injectDependencies(UrlDownloadJob pDownloadJob)
           
 void setApplicationContext(org.springframework.context.ApplicationContext pContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadJobFactory

public DownloadJobFactory()
Method Detail

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

createDownloadJob

public UrlDownloadJob createDownloadJob()

injectDependencies

public void injectDependencies(Job pJob)

injectDependencies

public void injectDependencies(UrlDownloadJob pDownloadJob)


Copyright © 2010. All Rights Reserved.