All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.caelum.brutauth.reflection.CustomBrutauthRuleMethodInvoker Maven / Gradle / Ivy

There is a newer version: 4.0.4
Show newest version
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 brutauthRule) {
		return CustomBrutauthRule.class.isAssignableFrom(brutauthRule);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy