com.github.aidensuen.mongo.builder.resource.MongoDaoResourceBuilderAdapter Maven / Gradle / Ivy
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;
}
}