Skip to content

Commit decf357

Browse files
committed
rename library to module
Signed-off-by: Lewis Birks <[email protected]>
1 parent d86518a commit decf357

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

docs/asciidoc/modules/db-scheduler.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import io.jooby.dbscheduler.DbSchedulerModule
4040
=== Tasks
4141

4242
Tasks are created as described in https://github.com/kagkarlsson/db-scheduler[db-scheduler documentation]. Optionally,
43-
you can annotate a method with the javadoc:dbscheduler.Scheduled[artifact="jooby-db-scheduler", package="jooby.dbscheduler"] annotation:
43+
you can annotate a method with the javadoc:dbscheduler.Scheduled[artifact="jooby-db-scheduler", module="jooby.dbscheduler"] annotation:
4444

4545
.Sample Job
4646
[source, java, role="primary"]
@@ -91,7 +91,7 @@ A task method must follow these rules:
9191

9292
=== Scheduled
9393

94-
The javadoc:dbscheduler.Scheduled[artifact="jooby-db-scheduler", package="jooby.dbscheduler"] annotation supports simple and cron triggers as well as property references:
94+
The javadoc:dbscheduler.Scheduled[artifact="jooby-db-scheduler", module="jooby.dbscheduler"] annotation supports simple and cron triggers as well as property references:
9595

9696
.Same as .fixedDelay(Duration) with duration.
9797
----
@@ -127,7 +127,7 @@ The `mytask.trigger` must be defined in your application property file. It could
127127

128128
=== Configuration
129129

130-
Configuration from properties files is fully supported, just need to add javadoc:dbscheduler.DbSchedulerProperties[artifact="jooby-db-scheduler", package="jooby.dbscheduler"]
130+
Configuration from properties files is fully supported, just need to add javadoc:dbscheduler.DbSchedulerProperties[artifact="jooby-db-scheduler", module="jooby.dbscheduler"]
131131
properties to your application configuration file:
132132

133133
.Options

docs/src/main/java/io/jooby/adoc/JavadocProcessor.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ public PhraseNode process(StructuralNode parent, String clazz, Map<String, Objec
6464
int start = qualifiedType.lastIndexOf('.');
6565
String simpleName = start > 0 ? qualifiedType.substring(start + 1) : qualifiedType;
6666

67-
// Code review comment: this feels like a hack but I can't get it to work otherwise
68-
// even when replacing with the escaped version "[\]"
6967
text.append(simpleName.replace("[]", "&#91;&#93;"));
7068

7169
index += 1;
@@ -98,14 +96,14 @@ public PhraseNode process(StructuralNode parent, String clazz, Map<String, Objec
9896

9997
private static StringBuilder generateLink(Map<String, Object> attributes) {
10098
String artifact = (String) attributes.getOrDefault("artifact", "jooby");
101-
String packageName = (String) attributes.get("package");
102-
if (packageName == null) {
103-
packageName = artifact.replace('-', '.');
99+
String module = (String) attributes.get("module");
100+
if (module == null) {
101+
module = artifact.replace('-', '.');
104102
}
105103
return new StringBuilder("https://www.javadoc.io/doc/io.jooby/")
106104
.append(artifact)
107105
.append("/latest/io.")
108-
.append(packageName)
106+
.append(module)
109107
.append("/io/jooby/");
110108
}
111109
}

0 commit comments

Comments
 (0)