Skip to content

Commit 140dbb2

Browse files
committed
feat: update roomservice
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
1 parent 1f329fd commit 140dbb2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package org.soujava.demos.mongodb.document;
2+
3+
import jakarta.enterprise.context.ApplicationScoped;
4+
import jakarta.inject.Inject;
5+
6+
@ApplicationScoped
7+
public class RoomService {
8+
9+
private final RoomRepository repository;
10+
11+
@Inject
12+
public RoomService(RoomRepository repository) {
13+
this.repository = repository;
14+
}
15+
16+
/**
17+
* Default constructor for CDI.
18+
*/
19+
RoomService() {
20+
this.repository = null;
21+
}
22+
}

0 commit comments

Comments
 (0)