All Downloads are FREE. Search and download functionalities are using the official Maven repository.

poussecafe.doc.process.ServiceDocCreation Maven / Gradle / Ivy

The newest version!
package poussecafe.doc.process;

import javax.lang.model.element.TypeElement;
import poussecafe.doc.model.moduledoc.ModuleDocId;
import poussecafe.doc.model.servicedoc.ServiceDoc;
import poussecafe.doc.model.servicedoc.ServiceDocFactory;
import poussecafe.doc.model.servicedoc.ServiceDocRepository;
import poussecafe.process.ExplicitDomainProcess;

public class ServiceDocCreation extends ExplicitDomainProcess {

    public void addServiceDoc(ModuleDocId moduleDocId, TypeElement classDoc) {
        ServiceDoc serviceDoc = serviceDocFactory.newServiceDoc(moduleDocId, classDoc);
        runInTransaction(ServiceDoc.class, () -> serviceDocRepository.add(serviceDoc));
    }

    private ServiceDocFactory serviceDocFactory;

    private ServiceDocRepository serviceDocRepository;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy