Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/asciidoc/modules/metrics.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand All @@ -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!" }
Expand Down
2 changes: 1 addition & 1 deletion docs/asciidoc/mvc-api.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ fun main(args: Array<String>) {
}
----

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

Expand Down
2 changes: 1 addition & 1 deletion docs/asciidoc/responses.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
8 changes: 4 additions & 4 deletions docs/asciidoc/value-api.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down
Loading