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

net.n2oapp.framework.config.metadata.pack.N2oLoadersPack Maven / Gradle / Ivy

The newest version!
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.reader.XmlMetadataLoader;
import net.n2oapp.framework.config.register.dynamic.JavaSourceLoader;

/**
 * Стандартные считыватели метаданных
 */
public class N2oLoadersPack implements MetadataPack {

    @Override
    public void build(N2oApplicationBuilder b) {
        b.loaders(new XmlMetadataLoader(b.getEnvironment().getNamespaceReaderFactory()),
                  new JavaSourceLoader(b.getEnvironment().getDynamicMetadataProviderFactory()));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy