mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
Impl, Factory修正
This commit is contained in:
parent
2aa6bf8c5b
commit
0d42dc3461
|
@ -3,9 +3,9 @@ package one.nem.lacerta.source.file.factory;
|
|||
import java.nio.file.Path;
|
||||
|
||||
import dagger.assisted.AssistedFactory;
|
||||
import one.nem.lacerta.source.file.FileManager;
|
||||
import one.nem.lacerta.source.file.impl.FileManagerImpl;
|
||||
|
||||
@AssistedFactory
|
||||
public interface FileManagerFactory {
|
||||
FileManager create(Path rootDir);
|
||||
FileManagerImpl create(Path rootDir);
|
||||
}
|
||||
|
|
|
@ -12,6 +12,8 @@ import java.util.List;
|
|||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import dagger.assisted.Assisted;
|
||||
import dagger.assisted.AssistedInject;
|
||||
import one.nem.lacerta.source.file.FileManager;
|
||||
|
||||
public class FileManagerImpl implements FileManager {
|
||||
|
@ -32,9 +34,10 @@ public class FileManagerImpl implements FileManager {
|
|||
}
|
||||
}
|
||||
|
||||
@Inject
|
||||
public FileManagerImpl(Path rootDir) {
|
||||
// TODO-rca: 未実装
|
||||
@AssistedInject
|
||||
public FileManagerImpl(@Assisted Path rootDir) {
|
||||
this.rootDir = rootDir;
|
||||
this.currentDir = rootDir;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user