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

net.yudichev.jiotty.common.inject.ExposedKeyModule Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
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