public class DefrostTask extends Object implements Callable<Executable>
Callable
that makes sure that a Executable
is loaded and
possibly prepared, making it ready to execute without delay.
It may be easier to use a Defroster
, which is at a higher level than
this class.
Defroster
Constructor and Description |
---|
DefrostTask(DocumentDescriptor<Executable> documentDescriptor,
ParsingContext parsingContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Executable |
call() |
static DefrostTask[] |
createMany(ParsingContext parsingContext)
Creates a defrost task for each document descriptor in a document source.
|
String |
toString() |
public DefrostTask(DocumentDescriptor<Executable> documentDescriptor, ParsingContext parsingContext)
documentDescriptor
- The document descriptor for the executableparsingContext
- The parsing contextpublic static DefrostTask[] createMany(ParsingContext parsingContext)
parsingContext
- The parsing contextDocumentSource.getDocument(String)
public Executable call() throws Exception
call
in interface Callable<Executable>
Exception
Copyright © 2009-2015 Three Crickets LLC.