mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
DatabaseをInjectするようにした?
This commit is contained in:
parent
ab709a0273
commit
5101bb05dc
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user