From 5101bb05dc28a44f47c7fc22d16d3ea2072533b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 14 Dec 2023 10:46:31 +0900 Subject: [PATCH] =?UTF-8?q?Database=E3=82=92Inject=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/one/nem/lacerta/data/impl/DocumentImpl.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java index d7663ff4..430cae11 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java @@ -2,6 +2,8 @@ package one.nem.lacerta.data.impl; import java.util.ArrayList; +import javax.inject.Inject; + import one.nem.lacerta.data.Document; import one.nem.lacerta.model.document.DocumentMeta; @@ -9,9 +11,18 @@ import one.nem.lacerta.model.document.DocumentDetail; import one.nem.lacerta.model.document.path.DocumentPath; import one.nem.lacerta.model.document.tag.DocumentTag; +import one.nem.lacerta.source.database.LacertaDatabase; + public class DocumentImpl implements Document{ + private LacertaDatabase database; + + @Inject + public DocumentImpl(LacertaDatabase database) { + this.database = database; + } + @Override public ArrayList getRecentDocumentMetas(int limit) {