Skip to content

Commit bf5f001

Browse files
committed
Add reified expose on PrivateBinderScope
1 parent 3206ef0 commit bf5f001

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/main/kotlin/org/jlleitschuh/guice/PrivateBinderScope.kt

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ internal constructor(private val privateBinder: PrivateBinder): BinderScope(priv
3131
fun expose(type: KClass<*>): AnnotatedElementBuilder =
3232
expose(type.java)
3333

34+
inline fun <reified T: Any> expose(): AnnotatedElementBuilder =
35+
expose(typeLiteral<T>())
36+
3437
override fun expose(type: TypeLiteral<*>): AnnotatedElementBuilder {
3538
return privateBinder.expose(type)
3639
}

0 commit comments

Comments
 (0)