com.itangcent.intellij.extend.guice.MethodHandler.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guice-action Show documentation
Show all versions of guice-action Show documentation
Help for developing plugins for JetBrains products.
KotlinAnAction:provide ActionContext(support inject guice) for actionPerformed
The newest version!
package com.itangcent.intellij.extend.guice
import java.lang.reflect.Method
/**
* Allows a method with a given annotation `A` on an injectee of type `I` to be
* processed in some way on each injectee using a custom strategy.
*
* @version $Revision: 1.1 $
*/
interface MethodHandler {
/**
* Process the given method which is annotated with the annotation
* on the injectee after the injectee has been injected
*/
// @Throws(InvocationTargetException::class, IllegalAccessException::class)
fun afterInjection(injectee: I, annotation: A, method: Method)
}