![JAR search and dependency download from the Maven repository](/logo.png)
br.com.caelum.brutauth.reflection.CustomBrutauthRuleMethodInvoker Maven / Gradle / Ivy
package br.com.caelum.brutauth.reflection;
import javax.inject.Inject;
import br.com.caelum.brutauth.auth.rules.BrutauthRule;
import br.com.caelum.brutauth.auth.rules.CustomBrutauthRule;
import br.com.caelum.brutauth.reflection.methodsearchers.MethodSearchers;
public class CustomBrutauthRuleMethodInvoker implements MethodInvoker {
@Inject private MethodSearchers searcher;
public boolean invoke(BrutauthRule toInvoke, Argument[] args) {
return searcher.search((CustomBrutauthRule) toInvoke, args).invoke();
}
@Override
public boolean canInvoke(Class extends BrutauthRule> brutauthRule) {
return CustomBrutauthRule.class.isAssignableFrom(brutauthRule);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy