Android reflection doesn't work - it don't find any class
I have an Android application. I want to scan for all classes within a package for a specify annotation. I have: package com.sample.package; import com.sample.core.Controller; import com.sample.core.ProtocolId; @Controller public class OtherController implements ControllerInterface{ @ProtocolId(id=100) public void doSomething(){ //do something } } I'm finding for classes annotated with @Controller for a specify @ProtocolId number. I'm using Google Reflections library. Here is how I'm scanning: package com.sample.package; import org.reflections.ReflectionUtils; import org.reflections.Reflection
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.