org.babyfish.jimmer.client.source.SourceManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-client Show documentation
Show all versions of jimmer-client Show documentation
A revolutionary ORM framework for both java and kotlin
package org.babyfish.jimmer.client.source;
import org.babyfish.jimmer.client.generator.Context;
import org.babyfish.jimmer.client.generator.Render;
import org.babyfish.jimmer.client.runtime.*;
import org.babyfish.jimmer.client.runtime.impl.IllegalApiException;
import java.util.*;
import java.util.function.Supplier;
import java.util.regex.Pattern;
public abstract class SourceManager {
private static final Pattern SEPARATOR_PATTERN = Pattern.compile("/|\\.");
private final Context ctx;
private final IdentityHashMap serviceSourceMap = new IdentityHashMap<>();
private final IdentityHashMap serviceImplSourceMap = new IdentityHashMap<>();
private final IdentityHashMap operationSourceMap = new IdentityHashMap<>();
private final IdentityHashMap typeSourceMap = new IdentityHashMap<>();
private final Map rootSourceMap = new TreeMap<>();
protected SourceManager(Context ctx) {
this.ctx = ctx;
}
public Collection