abstract fun <T : Any> getPlugin(type: Class<T>): T
Locates the plugin convention object with the given type.
type
- The convention object type.
IllegalStateException
- When there is no such object contained in this convention, or when there are multiple such objects.
Return
The object. Never returns null.