List of usage examples for org.springframework.util ClassUtils hasAtLeastOneMethodWithName
public static boolean hasAtLeastOneMethodWithName(Class<?> clazz, String methodName)
From source file:org.springframework.flex.remoting.RemotingDestinationExporter.java
private List<RemotingMethod> getRemotingMethods(String[] methodNames) { List<RemotingMethod> remotingMethods = new ArrayList<RemotingMethod>(); for (String name : methodNames) { Class<?> classToCheck = this.sourceClass != null ? this.sourceClass : this.service.getClass(); Assert.isTrue(ClassUtils.hasAtLeastOneMethodWithName(classToCheck, name), "Could not find method with name '" + name + "' on the exported service of type " + classToCheck); RemotingMethod method = new RemotingMethod(); method.setName(name);//from ww w . j a va2s . co m remotingMethods.add(method); } return remotingMethods; }