From 03756dbaa57dc32ac0ad82595e1170aa92c390ae Mon Sep 17 00:00:00 2001 From: Muntazir Fadhel Date: Thu, 1 Oct 2026 19:53:47 +0300 Subject: [PATCH] doc: replace type names that no longer exist --- docs/asciidoc/modules/metrics.adoc | 6 +++--- docs/asciidoc/mvc-api.adoc | 2 +- docs/asciidoc/responses.adoc | 2 +- docs/asciidoc/value-api.adoc | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/asciidoc/modules/metrics.adoc b/docs/asciidoc/modules/metrics.adoc index 9666c8555b..59ec5c5242 100644 --- a/docs/asciidoc/modules/metrics.adoc +++ b/docs/asciidoc/modules/metrics.adoc @@ -101,14 +101,14 @@ Health checks are available at `/sys/healthCheck` via: === Instrumented Requests -Use the javadoc:io.jooby.metrics.MetricsDecorator[] decorator to capture request information (like active requests +Use the javadoc:metrics.MetricsFilter[artifact=jooby-metrics] filter to capture request information (like active requests or min/mean/max execution time) and a breakdown of the response codes being returned for a selection of routes: .Java [source, java, role="primary"] ---- { - use(new MetricsModule()); + use(new MetricsFilter()); // inspected route get("/", context -> "Hello metrics!"); @@ -119,7 +119,7 @@ or min/mean/max execution time) and a breakdown of the response codes being retu [source, kt, role="secondary"] ---- { - use(MetricsModule()) + use(MetricsFilter()) // inspected route get("/") { context: Context? -> "Hello metrics!" } diff --git a/docs/asciidoc/mvc-api.adoc b/docs/asciidoc/mvc-api.adoc index 9e719311c5..c6757d275d 100644 --- a/docs/asciidoc/mvc-api.adoc +++ b/docs/asciidoc/mvc-api.adoc @@ -123,7 +123,7 @@ fun main(args: Array) { } ---- -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. +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. ==== Parameters diff --git a/docs/asciidoc/responses.adoc b/docs/asciidoc/responses.adoc index baa4258c51..2c961ba9ae 100644 --- a/docs/asciidoc/responses.adoc +++ b/docs/asciidoc/responses.adoc @@ -752,7 +752,7 @@ The family of send methods includes: * javadoc:Context[send, byte[\]] * javadoc:Context[send, byte[\]...] -* javadoc:Context[send, io.jooby.buffer.DataBuffer] +* javadoc:Context[send, io.jooby.output.Output] * javadoc:Context[send, io.jooby.FileDownload] * javadoc:Context[send, io.jooby.StatusCode] * javadoc:Context[send, java.io.InputStream] diff --git a/docs/asciidoc/value-api.adoc b/docs/asciidoc/value-api.adoc index 60e5ec65c7..af2007058d 100644 --- a/docs/asciidoc/value-api.adoc +++ b/docs/asciidoc/value-api.adoc @@ -389,9 +389,9 @@ The javadoc:value.ValueFactory[] allows you to register new type conversions or valueFactory.put(MyBean.class, new MyBeanConverter()); } -import io.jooby.value.ValueConverter; +import io.jooby.value.Converter; -class MyBeanConverter implements ValueConverter { +class MyBeanConverter implements Converter { @Override public Object convert(Type type, Value node, ConversionHint hint) { // Logic to convert the 'node' into MyBean.class @@ -407,9 +407,9 @@ class MyBeanConverter implements ValueConverter { valueFactory.put(MyBean::class.java, MyBeanConverter()) } -import io.jooby.value.ValueConverter +import io.jooby.value.Converter -class MyBeanConverter : ValueConverter { +class MyBeanConverter : Converter { override fun convert(type: Type, node: Value, hint: ConversionHint): Any { // Logic to convert the 'node' into MyBean::class.java return MyBean()