findFromPackage

open fun findFromPackage(source: String): Class<out Any>

Find the first Class that is annotated with the target annotation, starting from the package defined by the given source up to the root.

Return

the first Class annotated with the target annotation within thehierarchy defined by the given source or null if none is found.

Parameters

source

the source package to use to initiate the search