org.reflections.scanners.MethodAnnotationsScanner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.reflections
Show all versions of org.apache.servicemix.bundles.reflections
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
package org.reflections.scanners;
import java.util.List;
@SuppressWarnings({"unchecked"})
/** scans for method's annotations */
public class MethodAnnotationsScanner extends AbstractScanner {
public void scan(final Object cls) {
for (Object method : getMetadataAdapter().getMethods(cls)) {
for (String methodAnnotation : (List) getMetadataAdapter().getMethodAnnotationNames(method)) {
if (acceptResult(methodAnnotation)) {
getStore().put(methodAnnotation, getMetadataAdapter().getMethodFullKey(cls, method));
}
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy