Skip to content

Commit 92a0ab6

Browse files
authored
Merge pull request #4009 from Zir0-93/doc/stale-type-names
doc: replace type names that no longer exist
2 parents f7fabce + 03756db commit 92a0ab6

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎docs/asciidoc/modules/metrics.adoc‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ Health checks are available at `/sys/healthCheck` via:
101101

102102
=== Instrumented Requests
103103

104-
Use the javadoc:io.jooby.metrics.MetricsDecorator[] decorator to capture request information (like active requests
104+
Use the javadoc:metrics.MetricsFilter[artifact=jooby-metrics] filter to capture request information (like active requests
105105
or min/mean/max execution time) and a breakdown of the response codes being returned for a selection of routes:
106106

107107
.Java
108108
[source, java, role="primary"]
109109
----
110110
{
111-
use(new MetricsModule());
111+
use(new MetricsFilter());
112112
113113
// inspected route
114114
get("/", context -> "Hello metrics!");
@@ -119,7 +119,7 @@ or min/mean/max execution time) and a breakdown of the response codes being retu
119119
[source, kt, role="secondary"]
120120
----
121121
{
122-
use(MetricsModule())
122+
use(MetricsFilter())
123123
124124
// inspected route
125125
get("/") { context: Context? -> "Hello metrics!" }

‎docs/asciidoc/mvc-api.adoc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ fun main(args: Array<String>) {
123123
}
124124
----
125125

126-
The javadoc:Jooby[mvc, io.jooby.MvcExtension] method installs the MVC routes. You can pass an instance directly, or if the controller constructor is annotated with `@Inject` (e.g., `jakarta.inject.Inject`), the generated code will attempt to resolve the dependencies from the registry.
126+
The javadoc:Jooby[mvc, io.jooby.Extension] method installs the MVC routes. You can pass an instance directly, or if the controller constructor is annotated with `@Inject` (e.g., `jakarta.inject.Inject`), the generated code will attempt to resolve the dependencies from the registry.
127127

128128
==== Parameters
129129

‎docs/asciidoc/responses.adoc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ The family of send methods includes:
752752

753753
* javadoc:Context[send, byte[\]]
754754
* javadoc:Context[send, byte[\]...]
755-
* javadoc:Context[send, io.jooby.buffer.DataBuffer]
755+
* javadoc:Context[send, io.jooby.output.Output]
756756
* javadoc:Context[send, io.jooby.FileDownload]
757757
* javadoc:Context[send, io.jooby.StatusCode]
758758
* javadoc:Context[send, java.io.InputStream]

‎docs/asciidoc/value-api.adoc‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,9 @@ The javadoc:value.ValueFactory[] allows you to register new type conversions or
389389
valueFactory.put(MyBean.class, new MyBeanConverter());
390390
}
391391
392-
import io.jooby.value.ValueConverter;
392+
import io.jooby.value.Converter;
393393
394-
class MyBeanConverter implements ValueConverter {
394+
class MyBeanConverter implements Converter {
395395
@Override
396396
public Object convert(Type type, Value node, ConversionHint hint) {
397397
// Logic to convert the 'node' into MyBean.class
@@ -407,9 +407,9 @@ class MyBeanConverter implements ValueConverter {
407407
valueFactory.put(MyBean::class.java, MyBeanConverter())
408408
}
409409
410-
import io.jooby.value.ValueConverter
410+
import io.jooby.value.Converter
411411
412-
class MyBeanConverter : ValueConverter {
412+
class MyBeanConverter : Converter {
413413
override fun convert(type: Type, node: Value, hint: ConversionHint): Any {
414414
// Logic to convert the 'node' into MyBean::class.java
415415
return MyBean()

0 commit comments

Comments
 (0)