DatabaseをInjectするようにした?

This commit is contained in:
ろむねこ 2023-12-14 10:46:31 +09:00
parent ab709a0273
commit 5101bb05dc
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -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<DocumentMeta> getRecentDocumentMetas(int limit) {