Skip to content

Commit 53fc537

Browse files
author
eschleb
committed
Add javadoc
1 parent 06a77e4 commit 53fc537

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ public class SomeTask implements InstallAndUpdateTask {
3838
return true;
3939
}
4040

41-
//Optional
41+
/*
42+
* Defines task that will be executed before this one.
43+
*
44+
* Be aware:
45+
* JCR queries run on persisted content. Unsaved modifications in the current session are not considered! (e.g. unsaved modifications in earlier executed setup tasks)
46+
*
47+
* optional
48+
*/
4249
@Override
4350
public Optional<VersionAwareTask> dependsOn() {
4451
return Optional.empty();

core/src/main/java/com/merkle/oss/magnolia/setup/task/type/VersionAwareTask.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ default boolean test(final InstallContext installContext, final Version forVersi
1414
return true;
1515
}
1616

17+
/**
18+
* Defines task that will be executed before this one.
19+
* <br>
20+
* <b>Be aware:</b><br>
21+
* JCR queries run on persisted content. Unsaved modifications in the current session are not considered! (e.g. unsaved modifications in earlier executed setup tasks)
22+
*/
1723
default Optional<VersionAwareTask> dependsOn() {
1824
return Optional.empty();
1925
}

0 commit comments

Comments
 (0)