net.n2oapp.framework.config.metadata.pack.N2oObjectsPack Maven / Gradle / Ivy
package net.n2oapp.framework.config.metadata.pack;
import net.n2oapp.framework.api.pack.MetadataPack;
import net.n2oapp.framework.config.N2oApplicationBuilder;
import net.n2oapp.framework.config.io.object.ObjectElementIOv4;
import net.n2oapp.framework.config.metadata.compile.object.*;
import net.n2oapp.framework.config.metadata.compile.validation.ConditionValidationCompiler;
import net.n2oapp.framework.config.metadata.compile.validation.ConstraintValidationCompiler;
import net.n2oapp.framework.config.metadata.compile.validation.MandatoryValidationCompiler;
import net.n2oapp.framework.config.metadata.compile.validation.DialogValidationCompiler;
import net.n2oapp.framework.config.metadata.merge.object.N2oObjectListFieldMerger;
import net.n2oapp.framework.config.metadata.merge.object.N2oObjectReferenceFieldMerger;
import net.n2oapp.framework.config.metadata.merge.object.N2oObjectSetFieldMerger;
import net.n2oapp.framework.config.metadata.merge.object.N2oObjectSimpleFieldMerger;
/**
* Набор для сборки стандартных объектов
*/
public class N2oObjectsPack implements MetadataPack {
@Override
public void build(N2oApplicationBuilder b) {
b.ios(
new ObjectElementIOv4()
);
b.compilers(
new N2oObjectCompiler(),
new ConstraintValidationCompiler(),
new MandatoryValidationCompiler(),
new ConditionValidationCompiler(),
new DialogValidationCompiler()
);
b.mergers(
new N2oObjectSimpleFieldMerger(),
new N2oObjectReferenceFieldMerger(),
new N2oObjectListFieldMerger(),
new N2oObjectSetFieldMerger()
);
}
}