Skip to content

Commit b8611d2

Browse files
committed
refactor: rename io.jooby.annotations to io.jooby.annotation fix #2802
1 parent e8e0ef8 commit b8611d2

File tree

143 files changed

+346
-345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+346
-345
lines changed

docs/asciidoc/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ them.
166166
[source,java,role="primary"]
167167
----
168168
169-
import io.jooby.annotations.*;
169+
import io.jooby.annotation.*;
170170
171171
public class MyController {
172172
@@ -191,7 +191,7 @@ public class App {
191191
.Kotlin
192192
[source,kotlin,role="secondary"]
193193
----
194-
import io.jooby.annotations.*;
194+
import io.jooby.annotation.*;
195195
196196
class MyController {
197197

docs/asciidoc/modules/ebean.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ import io.jooby.ebean.TransactionalRequest
162162

163163
If you simply install the decorator it becomes enabled by default, this means that each route in its
164164
scope become transactional. You can exclude an MVC route by annotating it with the
165-
javadoc:annotations.Transactional[] annotation:
165+
javadoc:annotation.Transactional[] annotation:
166166

167167
.@Transactional
168-
[source, java, role = "primary"]
168+
[source,java,role = "primary"]
169169
----
170-
import io.jooby.annotations.Transactional;
170+
import io.jooby.annotation.Transactional;
171171
172172
@Transactional(false)
173173
@GET("/")
@@ -179,7 +179,7 @@ public void get(Context ctx) {
179179
.Kotlin
180180
[source, kt, role="secondary"]
181181
----
182-
import io.jooby.annotations.Transactional
182+
import io.jooby.annotation.Transactional
183183
184184
@Transactional(false)
185185
@GET("/")
@@ -217,9 +217,9 @@ import io.jooby.ebean.TransactionalRequest
217217
Then you can enable it for the selected routes using `@Transactional(true)`:
218218

219219
.@Transactional
220-
[source, java, role = "primary"]
220+
[source,java,role = "primary"]
221221
----
222-
import io.jooby.annotations.Transactional;
222+
import io.jooby.annotation.Transactional;
223223
224224
@Inject
225225
private Database database;
@@ -234,7 +234,7 @@ public void get(Context ctx) {
234234
.Kotlin
235235
[source, kt, role="secondary"]
236236
----
237-
import io.jooby.annotations.Transactional
237+
import io.jooby.annotation.Transactional
238238
239239
@Inject
240240
private lateinit var database: Database
@@ -249,9 +249,9 @@ fun get(ctx: Context) {
249249
This feature is not limited to MVC routes. For script routes use the constant `Transactional.ATTRIBUTE`:
250250

251251
.Transactional for script routes
252-
[source, java, role = "primary"]
252+
[source,java,role = "primary"]
253253
----
254-
import io.jooby.annotations.Transactional;
254+
255255
256256
{
257257
get("/", ctx -> {
@@ -263,7 +263,7 @@ import io.jooby.annotations.Transactional;
263263
.Kotlin
264264
[source, kt, role="secondary"]
265265
----
266-
import io.jooby.annotations.Transactional
266+
import io.jooby.annotation.Transactional
267267
268268
{
269269
get("/") {

docs/asciidoc/modules/hibernate.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ management to you, so no transaction is started/committed or rollback during a H
192192

193193
If you simply install the decorator it becomes enabled by default, this means that each route in its
194194
scope become transactional. You can exclude an MVC route by annotating it with the
195-
javadoc:annotations.Transactional[] annotation:
195+
javadoc:annotation.Transactional[] annotation:
196196

197197
.@Transactional
198-
[source, java, role = "primary"]
198+
[source,java,role = "primary"]
199199
----
200-
import io.jooby.annotations.Transactional;
200+
import io.jooby.annotation.Transactional;
201201
202202
@Transactional(false)
203203
@GET("/")
@@ -209,7 +209,7 @@ public void get(Context ctx) {
209209
.Kotlin
210210
[source, kt, role="secondary"]
211211
----
212-
import io.jooby.annotations.Transactional
212+
import io.jooby.annotation.Transactional
213213
214214
@Transactional(false)
215215
@GET("/")
@@ -247,9 +247,9 @@ import io.jooby.ebean.TransactionalRequest
247247
Then you can enable it for the selected routes using `@Transactional(true)`:
248248

249249
.@Transactional
250-
[source, java, role = "primary"]
250+
[source,java,role = "primary"]
251251
----
252-
import io.jooby.annotations.Transactional;
252+
import io.jooby.annotation.Transactional;
253253
254254
@Inject
255255
private EntityManager entityManager;
@@ -264,7 +264,7 @@ public void get(Context ctx) {
264264
.Kotlin
265265
[source, kt, role="secondary"]
266266
----
267-
import io.jooby.annotations.Transactional
267+
import io.jooby.annotation.Transactional
268268
269269
@Inject
270270
private lateinit var entityManager: EntityManager
@@ -279,9 +279,9 @@ fun get(ctx: Context) {
279279
This feature is not limited to MVC routes. For script routes use the constant `Transactional.ATTRIBUTE`:
280280

281281
.Transactional for script routes
282-
[source, java, role = "primary"]
282+
[source,java,role = "primary"]
283283
----
284-
import io.jooby.annotations.Transactional;
284+
285285
286286
{
287287
get("/", ctx -> {
@@ -293,7 +293,7 @@ import io.jooby.annotations.Transactional;
293293
.Kotlin
294294
[source, kt, role="secondary"]
295295
----
296-
import io.jooby.annotations.Transactional
296+
import io.jooby.annotation.Transactional
297297
298298
{
299299
get("/") {

docs/asciidoc/modules/jdbi.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ The decorator takes care of closing the `Handle` and releasing the JDBC connecti
142142

143143
If you simply install the decorator it becomes enabled by default, this means that each route in its
144144
scope become transactional. You can exclude an MVC route by annotating it with the
145-
javadoc:annotations.Transactional[] annotation:
145+
javadoc:annotation.Transactional[] annotation:
146146

147147
.@Transactional
148-
[source, java, role = "primary"]
148+
[source,java,role = "primary"]
149149
----
150-
import io.jooby.annotations.Transactional;
150+
import io.jooby.annotation.Transactional;
151151
152152
@Transactional(false)
153153
@GET("/")
@@ -159,7 +159,7 @@ public void get(Context ctx) {
159159
.Kotlin
160160
[source, kt, role="secondary"]
161161
----
162-
import io.jooby.annotations.Transactional
162+
import io.jooby.annotation.Transactional
163163
164164
@Transactional(false)
165165
@GET("/")
@@ -197,9 +197,9 @@ import io.jooby.ebean.TransactionalRequest
197197
Then you can enable it for the selected routes using `@Transactional(true)`:
198198

199199
.@Transactional
200-
[source, java, role = "primary"]
200+
[source,java,role = "primary"]
201201
----
202-
import io.jooby.annotations.Transactional;
202+
import io.jooby.annotation.Transactional;
203203
204204
@Inject
205205
private Handle handle;
@@ -214,7 +214,7 @@ public void get(Context ctx) {
214214
.Kotlin
215215
[source, kt, role="secondary"]
216216
----
217-
import io.jooby.annotations.Transactional
217+
import io.jooby.annotation.Transactional
218218
219219
@Inject
220220
private lateinit var handle: Handle
@@ -229,9 +229,9 @@ fun get(ctx: Context) {
229229
This feature is not limited to MVC routes. For script routes use the constant `Transactional.ATTRIBUTE`:
230230

231231
.Transactional for script routes
232-
[source, java, role = "primary"]
232+
[source,java,role = "primary"]
233233
----
234-
import io.jooby.annotations.Transactional;
234+
235235
236236
{
237237
get("/", ctx -> {
@@ -243,7 +243,7 @@ import io.jooby.annotations.Transactional;
243243
.Kotlin
244244
[source, kt, role="secondary"]
245245
----
246-
import io.jooby.annotations.Transactional
246+
import io.jooby.annotation.Transactional
247247
248248
{
249249
get("/") {

docs/asciidoc/modules/weld.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ automatically registered. No need to register it manually
100100
instance add the `jakarta.inject.Singleton` annotation
101101

102102
.MVC route
103-
[source, java, role="primary"]
103+
[source,java,role="primary"]
104104
----
105-
import io.jooby.annotations.*;
105+
import io.jooby.annotation.*;
106106
107107
@Path("/")
108108
public class Hello {
@@ -117,7 +117,7 @@ public class Hello {
117117
.Kotlin
118118
[source, kotlin, role="secondary"]
119119
----
120-
import io.jooby.annotations.*;
120+
import io.jooby.annotation.*;
121121
122122
@Path("/")
123123
class Hello {

docs/asciidoc/mvc-api.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ change e.g. `HelloController` only, then only the class responsible for register
4747
`HelloController` will be regenerated. This however will force Jooby to load the generated classes
4848
with reflection instead of the service-provider loading facility.
4949

50-
The package `io.jooby.annotations` contains all the annotations available for MVC routes.
50+
The package `annotation` contains all the annotations available for MVC routes.
5151

5252
.MVC API:
5353
[source,java,role="primary"]
5454
----
55-
import io.jooby.annotations.*;
55+
import io.jooby.annotation.*;
5656
5757
@Path("/mvc") // <1>
5858
public class Controller {
@@ -79,7 +79,7 @@ public class App extends Jooby {
7979
[source,kotlin,role="secondary"]
8080
----
8181
82-
import io.jooby.annotations.*;
82+
import io.jooby.annotation.*;
8383
8484
@Path("/mvc") // <1>
8585
class Controller {
@@ -766,7 +766,7 @@ public class MyController {
766766
.Kotlin
767767
[source, kotlin, role = "secondary"]
768768
----
769-
import io.jooby.annotations.*
769+
import io.jooby.annotation.*
770770
771771
class MyController {
772772
@@ -804,7 +804,7 @@ public class MyController {
804804
.Kotlin
805805
[source, kotlin, role = "secondary"]
806806
----
807-
import io.jooby.annotations.*
807+
import io.jooby.annotation.*
808808
809809
class MyController {
810810

jooby/src/main/java/io/jooby/ParamSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* List of possible parameter sources supported by {@link Context#lookup(String, ParamSource...)}.
1212
*
13-
* @see io.jooby.annotations.Param
13+
* @see io.jooby.annotation.Param
1414
* @see Context#lookup(String, ParamSource...)
1515
*/
1616
public enum ParamSource {

jooby/src/main/java/io/jooby/Route.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import edu.umd.cs.findbugs.annotations.NonNull;
2323
import edu.umd.cs.findbugs.annotations.Nullable;
24-
import io.jooby.annotations.Transactional;
24+
import io.jooby.annotation.Transactional;
2525
import io.jooby.exception.MethodNotAllowedException;
2626
import io.jooby.exception.NotAcceptableException;
2727
import io.jooby.exception.NotFoundException;

jooby/src/main/java/io/jooby/annotations/CONNECT.java renamed to jooby/src/main/java/io/jooby/annotation/CONNECT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
44
* Copyright 2014 Edgar Espina
55
*/
6-
package io.jooby.annotations;
6+
package io.jooby.annotation;
77

88
import java.lang.annotation.ElementType;
99
import java.lang.annotation.Retention;

jooby/src/main/java/io/jooby/annotations/Consumes.java renamed to jooby/src/main/java/io/jooby/annotation/Consumes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
44
* Copyright 2014 Edgar Espina
55
*/
6-
package io.jooby.annotations;
6+
package io.jooby.annotation;
77

88
import java.lang.annotation.Documented;
99
import java.lang.annotation.ElementType;

0 commit comments

Comments
 (0)