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

com.github.aidensuen.mongo.builder.resource.MongoDaoResourceBuilderAdapter Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package com.github.aidensuen.mongo.builder.resource;

import com.github.aidensuen.mongo.core.MongoDaoStatement;
import com.github.aidensuen.mongo.session.Configuration;
import org.springframework.core.io.Resource;

public abstract class MongoDaoResourceBuilderAdapter {

    private final Configuration configuration;

    public MongoDaoResourceBuilderAdapter(Configuration configuration) {
        this.configuration = configuration;
    }

    public void parse(Resource resource) {
        configuration.addMongoDaoStatement(parseInternal(resource));
    }

    public abstract MongoDaoStatement parseInternal(Resource resource);

    public Configuration getConfiguration() {
        return configuration;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy