com.github.cukedoctor.renderer.AbstractBaseRenderer Maven / Gradle / Ivy
package com.github.cukedoctor.renderer;
import com.github.cukedoctor.api.CukedoctorDocumentBuilder;
import com.github.cukedoctor.api.DocumentAttributes;
import com.github.cukedoctor.config.GlobalConfig;
import com.github.cukedoctor.i18n.I18nLoader;
/**
* Created by pestano on 26/02/16.
*/
public abstract class AbstractBaseRenderer {
protected I18nLoader i18n;
protected CukedoctorDocumentBuilder docBuilder;
protected DocumentAttributes documentAttributes;
public AbstractBaseRenderer() {
i18n = I18nLoader.instance(null);
docBuilder = CukedoctorDocumentBuilder.Factory.newInstance();
documentAttributes = GlobalConfig.getInstance().getDocumentAttributes();
}
public void setI18n(I18nLoader i18n) {
this.i18n = i18n;
}
public void setDocumentBuilder(CukedoctorDocumentBuilder documentBuilder) {
this.docBuilder = documentBuilder;
}
public void setDocumentAttributes(DocumentAttributes documentAttributes) {
this.documentAttributes = documentAttributes;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy