1 15 package org.apache.hivemind.methodmatch; 16 17 import org.apache.hivemind.service.MethodSignature; 18 19 24 public class ParameterCountFilter extends MethodFilter 25 { 26 private int _parameterCount; 27 28 public ParameterCountFilter(int parameterCount) 29 { 30 _parameterCount = parameterCount; 31 32 } 33 34 public boolean matchMethod(MethodSignature method) 35 { 36 return method.getParameterTypes().length == _parameterCount; 37 } 38 39 } 40 | Popular Tags |