|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schmant.support.FutureEntityIndexStrategy
public class FutureEntityIndexStrategy
This is a FutureEntityStrategy
that creates future entities of the
form [base_directory]/[prefix][index][suffix]
. The index is
incremented for each new FutureEntity
object created.
Constructor Summary | |
---|---|
FutureEntityIndexStrategy(DirectoryView baseDir,
String prefix,
String suffix)
Create a FutureEntityIndexStrategy . |
|
FutureEntityIndexStrategy(DirectoryView baseDir,
String prefix,
String suffix,
int firstIndex)
Create a FutureEntityIndexStrategy . |
Method Summary | |
---|---|
FutureEntity |
createFutureEntity(Object source)
Create a future entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FutureEntityIndexStrategy(DirectoryView baseDir, String prefix, String suffix)
FutureEntityIndexStrategy
. The index of the first
created FutureEntity
will be 1.
baseDir
- The base directory.prefix
- The prefix of the future entity name.suffix
- The suffix of the future entity name.public FutureEntityIndexStrategy(DirectoryView baseDir, String prefix, String suffix, int firstIndex)
FutureEntityIndexStrategy
. The index of the first
created FutureEntity
will be the supplied value.
baseDir
- The base directory.prefix
- The prefix of the future entity name.suffix
- The suffix of the future entity name.firstIndex
- The index number of the first created future entity.Method Detail |
---|
public FutureEntity createFutureEntity(Object source)
FutureEntityStrategy
createFutureEntity
in interface FutureEntityStrategy
source
- The source entity. The this entity should be interpreted in
the same way as the task does.
FutureEntity
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |