リファクタリング

This commit is contained in:
r-ca 2024-01-07 19:36:49 +09:00
parent c54967f016
commit dfe5c36e9e
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -34,17 +34,17 @@ public class DocumentProcessorImpl implements DocumentProcessor{
private XmlMetaModel xmlMetaModel; private XmlMetaModel xmlMetaModel;
// Injection // Injection
@Inject private FileManagerFactory fileManagerFactory;
FileManagerFactory fileManagerFactory;
@Inject private LacertaLogger logger;
LacertaLogger logger;
@Inject private XmlMetaParser xmlMetaParser;
XmlMetaParser xmlMetaParser;
@AssistedInject @AssistedInject
public DocumentProcessorImpl(@Assisted DocumentDetail documentDetail) { public DocumentProcessorImpl(FileManagerFactory fileManagerFactory, LacertaLogger logger, XmlMetaParser xmlMetaParser, @Assisted DocumentDetail documentDetail) {
this.fileManagerFactory = fileManagerFactory;
this.logger = logger;
this.xmlMetaParser = xmlMetaParser;
if (documentDetail == null) { if (documentDetail == null) {
throw new IllegalArgumentException("documentDetail must not be null"); throw new IllegalArgumentException("documentDetail must not be null");
} }