Skip to content

Commit

Permalink
'3.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jknack committed Jun 10, 2024
1 parent 1fdef9c commit c669d7b
Show file tree
Hide file tree
Showing 36 changed files with 1,721 additions and 1,797 deletions.
2,042 changes: 983 additions & 1,059 deletions index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions migration/3.x/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -635,13 +635,13 @@ <h4 id="upgrading-from-2-x-to-3-x-kotlin"><a class="anchor" href="#upgrading-fro


<div class="switch"><div class="switch--item option-1 selected">Maven</div><div class="switch--item option-2">Gradle</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml" id="xc29c65f5467d4479">&lt;dependency&gt;
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml" id="x88eb5eaea7164244">&lt;dependency&gt;
&lt;groupId&gt;io.jooby&lt;/groupId&gt;
&lt;artifactId&gt;jooby-kotlin&lt;/artifactId&gt;
&lt;version&gt;3.2.0&lt;/version&gt;
&lt;/dependency&gt;</code><button class="clipboard" data-clipboard-target="#xc29c65f5467d4479"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
&lt;/dependency&gt;</code><button class="clipboard" data-clipboard-target="#x88eb5eaea7164244"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-gradle hljs" data-lang="gradle" id="xc98e3c8eb9924f6d">implementation 'io.jooby:jooby-kotlin:3.2.0'</code><button class="clipboard" data-clipboard-target="#xc98e3c8eb9924f6d"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
<pre class="highlightjs highlight"><code class="language-gradle hljs" data-lang="gradle" id="x25a47a9a30934e89">implementation 'io.jooby:jooby-kotlin:3.2.0'</code><button class="clipboard" data-clipboard-target="#x25a47a9a30934e89"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

</div>
Expand Down
32 changes: 16 additions & 16 deletions modules/avaje-inject/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -588,13 +588,13 @@ <h3 id="avaje-inject"><a class="anchor" href="#avaje-inject"></a><a class="link"


<div class="switch"><div class="switch--item option-1 selected">Maven</div><div class="switch--item option-2">Gradle</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml" id="x9434c4d5cd314377">&lt;dependency&gt;
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml" id="xa41ca0490a4a49a7">&lt;dependency&gt;
&lt;groupId&gt;io.jooby&lt;/groupId&gt;
&lt;artifactId&gt;jooby-avaje-inject&lt;/artifactId&gt;
&lt;version&gt;1.1.0&lt;/version&gt;
&lt;/dependency&gt;</code><button class="clipboard" data-clipboard-target="#x9434c4d5cd314377"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
&lt;/dependency&gt;</code><button class="clipboard" data-clipboard-target="#xa41ca0490a4a49a7"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-gradle hljs" data-lang="gradle" id="x721a75871c1a4678">implementation 'io.jooby:jooby-avaje-inject:1.1.0'</code><button class="clipboard" data-clipboard-target="#x721a75871c1a4678"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
<pre class="highlightjs highlight"><code class="language-gradle hljs" data-lang="gradle" id="x736300ee7c0b4e6d">implementation 'io.jooby:jooby-avaje-inject:1.1.0'</code><button class="clipboard" data-clipboard-target="#x736300ee7c0b4e6d"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

<div class="paragraph">
Expand All @@ -604,7 +604,7 @@ <h3 id="avaje-inject"><a class="anchor" href="#avaje-inject"></a><a class="link"
<div class="title">Installing Avaje Inject</div>

<div class="switch"><div class="switch--item option-1 selected">Java</div><div class="switch--item option-2">Kotlin</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="x40e21dba76114935">public class App extends Jooby {
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="x181c02b6f4e04250">public class App extends Jooby {

{
install(AvajeInjectModule.of()); <i class="conum" data-value="1"></i><b>(1)</b>
Expand All @@ -618,9 +618,9 @@ <h3 id="avaje-inject"><a class="anchor" href="#avaje-inject"></a><a class="link"
public static void main(String[] args) {
runApp(args, App::new);
}
}</code><button class="clipboard" data-clipboard-target="#x40e21dba76114935"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#x181c02b6f4e04250"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="x19a05c8a59654080">fun main(args: Array&lt;String&gt;) {
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="xd795798240e5409a">fun main(args: Array&lt;String&gt;) {
runApp(args) {
install(AvajeInjectModule.of()) <i class="conum" data-value="1"></i><b>(1)</b>

Expand All @@ -629,7 +629,7 @@ <h3 id="avaje-inject"><a class="anchor" href="#avaje-inject"></a><a class="link"
service.doSomething()
}
}
}</code><button class="clipboard" data-clipboard-target="#x19a05c8a59654080"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#xd795798240e5409a"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

<div class="colist arabic">
Expand All @@ -652,27 +652,27 @@ <h4 id="avaje-inject-property-injection"><a class="anchor" href="#avaje-inject-p
<div class="listingblock">
<div class="title">application.conf</div>
<div class="content">
<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash" id="xca994918ebc84336">currency = USD</code><button class="clipboard" data-clipboard-target="#xca994918ebc84336"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash" id="xf9688b91a0f44cd2">currency = USD</code><button class="clipboard" data-clipboard-target="#xf9688b91a0f44cd2"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div>
</div>
<div class="listingblock primary">


<div class="switch"><div class="switch--item option-1 selected">Java</div><div class="switch--item option-2">Kotlin</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="xd6cf84b2d53949d2">@Singleton
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="x632470e724824fa7">@Singleton
public class BillingService {

@Inject
public BillingService(@Named("currency") String currency) {
...
}

}</code><button class="clipboard" data-clipboard-target="#xd6cf84b2d53949d2"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#x632470e724824fa7"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="x30d991d0b8884dbb">@Singleton
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="xd53e2ee069e749cd">@Singleton
class BillingService @Inject constructor(@Named("currency") currency: String) {
...
}</code><button class="clipboard" data-clipboard-target="#x30d991d0b8884dbb"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#xd53e2ee069e749cd"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

</div>
Expand All @@ -685,7 +685,7 @@ <h4 id="avaje-inject-mvc-routes"><a class="anchor" href="#avaje-inject-mvc-route
<div class="title">MVC and Avaje Inject</div>

<div class="switch"><div class="switch--item option-1 selected">Java</div><div class="switch--item option-2">Kotlin</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="xdd8861530ae6479b">public class App extends Jooby {
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="xbe4f483ebb9b481f">public class App extends Jooby {

{
install(AvajeInjectModule.of()); <i class="conum" data-value="1"></i><b>(1)</b>
Expand All @@ -696,15 +696,15 @@ <h4 id="avaje-inject-mvc-routes"><a class="anchor" href="#avaje-inject-mvc-route
public static void main(String[] args) {
runApp(args, App::new);
}
}</code><button class="clipboard" data-clipboard-target="#xdd8861530ae6479b"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#xbe4f483ebb9b481f"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="xffcff48ff2924719">fun main(args: Array&lt;String&gt;) {
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="x6371bc23885e44dc">fun main(args: Array&lt;String&gt;) {
runApp(args) {
install(AvajeInjectModule.of()) <i class="conum" data-value="1"></i><b>(1)</b>

mvc(MyController::class) <i class="conum" data-value="2"></i><b>(2)</b>
}
}</code><button class="clipboard" data-clipboard-target="#xffcff48ff2924719"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#x6371bc23885e44dc"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

<div class="colist arabic">
Expand Down
30 changes: 15 additions & 15 deletions modules/avaje-jsonb/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -594,13 +594,13 @@ <h3 id="avaje-jsonb-usage"><a class="anchor" href="#avaje-jsonb-usage"></a><a cl


<div class="switch"><div class="switch--item option-1 selected">Maven</div><div class="switch--item option-2">Gradle</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml" id="x598eaebdddb3479a">&lt;dependency&gt;
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml" id="x66e59a617ad94717">&lt;dependency&gt;
&lt;groupId&gt;io.jooby&lt;/groupId&gt;
&lt;artifactId&gt;jooby-avaje-jsonb&lt;/artifactId&gt;
&lt;version&gt;3.2.0&lt;/version&gt;
&lt;/dependency&gt;</code><button class="clipboard" data-clipboard-target="#x598eaebdddb3479a"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
&lt;/dependency&gt;</code><button class="clipboard" data-clipboard-target="#x66e59a617ad94717"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-gradle hljs" data-lang="gradle" id="x36e7506ddd634e0f">implementation 'io.jooby:jooby-avaje-jsonb:3.2.0'</code><button class="clipboard" data-clipboard-target="#x36e7506ddd634e0f"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
<pre class="highlightjs highlight"><code class="language-gradle hljs" data-lang="gradle" id="x9e4be4b52e5d46e4">implementation 'io.jooby:jooby-avaje-jsonb:3.2.0'</code><button class="clipboard" data-clipboard-target="#x9e4be4b52e5d46e4"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

<div class="paragraph">
Expand All @@ -610,7 +610,7 @@ <h3 id="avaje-jsonb-usage"><a class="anchor" href="#avaje-jsonb-usage"></a><a cl


<div class="switch"><div class="switch--item option-1 selected">Java</div><div class="switch--item option-2">Kotlin</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="xc3d71723c2fb4f10">import io.jooby.avaje.jsonb.AvajeJsonbModule;
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="x650a4330b95d45ab">import io.jooby.avaje.jsonb.AvajeJsonbModule;

{
install(new AvajeJsonbModule()); <i class="conum" data-value="1"></i><b>(1)</b>
Expand All @@ -624,9 +624,9 @@ <h3 id="avaje-jsonb-usage"><a class="anchor" href="#avaje-jsonb-usage"></a><a cl
MyObject myObject = ctx.body(MyObject.class); <i class="conum" data-value="3"></i><b>(3)</b>
...
});
}</code><button class="clipboard" data-clipboard-target="#xc3d71723c2fb4f10"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#x650a4330b95d45ab"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-kt hljs" data-lang="kt" id="x5dbe369077f2456e">import io.jooby.avaje.jsonb.AvajeJsonbModule
<pre class="highlightjs highlight"><code class="language-kt hljs" data-lang="kt" id="xe615b01a84d5407e">import io.jooby.avaje.jsonb.AvajeJsonbModule

{
install(AvajeJsonbModule()) <i class="conum" data-value="1"></i><b>(1)</b>
Expand All @@ -640,7 +640,7 @@ <h3 id="avaje-jsonb-usage"><a class="anchor" href="#avaje-jsonb-usage"></a><a cl
val myObject = ctx.body&lt;MyObject&gt;() <i class="conum" data-value="3"></i><b>(3)</b>
...
}
}</code><button class="clipboard" data-clipboard-target="#x5dbe369077f2456e"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#xe615b01a84d5407e"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

<div class="colist arabic">
Expand Down Expand Up @@ -669,7 +669,7 @@ <h3 id="avaje-jsonb-working-with-jsonb"><a class="anchor" href="#avaje-jsonb-wor
<div class="title">Default Jsonb</div>

<div class="switch"><div class="switch--item option-1 selected">Java</div><div class="switch--item option-2">Kotlin</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="x644443e3c9c4be4">import io.jooby.avaje.jsonb.AvajeJsonbModule;
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="x8418bd98bba64bf7">import io.jooby.avaje.jsonb.AvajeJsonbModule;
import io.avaje.jsonb.Jsonb;

{
Expand All @@ -678,16 +678,16 @@ <h3 id="avaje-jsonb-working-with-jsonb"><a class="anchor" href="#avaje-jsonb-wor
Jsonb jsonb = require(Jsonb.class);

...
}</code><button class="clipboard" data-clipboard-target="#x644443e3c9c4be4"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#x8418bd98bba64bf7"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-kt hljs" data-lang="kt" id="x9201ab5af0164574">import io.jooby.avaje.jsonb.AvajeJsonbModule
<pre class="highlightjs highlight"><code class="language-kt hljs" data-lang="kt" id="x8adad76300494f71">import io.jooby.avaje.jsonb.AvajeJsonbModule
import io.avaje.jsonb.Jsonb

{
install(JacksonModule())

val jsonb = require&lt;Jsonb&gt;()
}</code><button class="clipboard" data-clipboard-target="#x9201ab5af0164574"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#x8adad76300494f71"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

<div class="paragraph">
Expand All @@ -697,23 +697,23 @@ <h3 id="avaje-jsonb-working-with-jsonb"><a class="anchor" href="#avaje-jsonb-wor
<div class="title">Custom Jsonb</div>

<div class="switch"><div class="switch--item option-1 selected">Java</div><div class="switch--item option-2">Kotlin</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="x8a5547d47c854acd">import io.jooby.avaje.jsonb.AvajeJsonbModule;
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="x34487fb2e4464cf2">import io.jooby.avaje.jsonb.AvajeJsonbModule;
import io.avaje.jsonb.Jsonb;

{
var jsonb = Jsonb.builder().build();

install(new AvajeJsonbModule(jsonb));
}</code><button class="clipboard" data-clipboard-target="#x8a5547d47c854acd"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#x34487fb2e4464cf2"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-kt hljs" data-lang="kt" id="x21a5ca0357164c24">import io.jooby.avaje.jsonb.AvajeJsonbModule
<pre class="highlightjs highlight"><code class="language-kt hljs" data-lang="kt" id="xb371892c4ed84ebc">import io.jooby.avaje.jsonb.AvajeJsonbModule
import io.avaje.jsonb.Jsonb

{
var jsonb = Jsonb.builder().build()

install(AvajeJsonbModule(jsonb))
}</code><button class="clipboard" data-clipboard-target="#x21a5ca0357164c24"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#xb371892c4ed84ebc"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

</div>
Expand Down
Loading

0 comments on commit c669d7b

Please sign in to comment.