com.trendmicro.grid.acl.ds.jpa
Class ReceivedSourcesHandler
java.lang.Object
com.trendmicro.grid.acl.ds.jpa.AbstractReceivedResultsHandler<Collection<List<JpaSource>>>
com.trendmicro.grid.acl.ds.jpa.ReceivedSourcesHandler
public class ReceivedSourcesHandler
- extends AbstractReceivedResultsHandler<Collection<List<JpaSource>>>
Implements a handler for syncing source entries contained in processing results.
Creates corresponding collections of source references that can be used to assign them to
the package members.
- Version:
- 1.0
- Author:
- juergen_kellerer, 2010-11-22
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReceivedSourcesHandler
public ReceivedSourcesHandler(JpaSourceRepository sourceRepository)
- Creates a thread safe instance.
- Parameters:
sourceRepository
- the SourceRepository to use.
getSourceRepository
public JpaSourceRepository getSourceRepository()
handle
protected Collection<List<JpaSource>> handle(AbstractReceivedResultsHandler.StorageContext context)
- Creates a corresponding collection of source references that can be used to assign them to files.
- Specified by:
handle
in class AbstractReceivedResultsHandler<Collection<List<JpaSource>>>
- Parameters:
context
- the data set to handle.
- Returns:
- a corresponding collection of source references.