net.yudichev.jiotty.common.inject.ExposedKeyModule Maven / Gradle / Ivy
package net.yudichev.jiotty.common.inject;
import com.google.common.reflect.TypeToken;
import com.google.inject.Key;
import com.google.inject.Module;
import static net.yudichev.jiotty.common.inject.TypeLiterals.asTypeLiteral;
public interface ExposedKeyModule extends Module {
default Key getExposedKey() {
return Key.get(asTypeLiteral(new TypeToken(getClass()) {}));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy