You can find an answer here.
I can suggest using org.reflections
You can take a look at it here
Reflections reflections = new Reflections("com.mycompany");
Set<Class<? extends MyInterface>> classes = reflections.getSubTypesOf(MyInterface.class);
More Related Contents:
- Java Quartz scheduled Job – disallow concurrent execution of Job
- JavaEE, Jboss, Empty string somewhere [closed]
- Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved
- Java 11 package javax.xml.bind does not exist [duplicate]
- Intellij IDEA Java classes not auto compiling on save
- How to hot-reload properties in Java EE and Spring Boot?
- Any way to share session state between different applications in tomcat?
- How are Servlet url mappings in web.xml used?
- Display BLOB (image) through JSP
- How to change Spring’s @Scheduled fixedDelay at runtime?
- Tomcat vs Weblogic JNDI Lookup
- Java how to instantiate a class from string [duplicate]
- Which compression (is GZIP the most popular) servlet filter would you suggest?
- Eager / auto loading of EJB / load EJB on startup (on JBoss)
- Embedded tomcat 7 servlet 3.0 annotations not working
- Use Enum type as a value parameter for @RolesAllowed-Annotation
- Mapping array with Hibernate
- Is there a way to run a method/class only on Tomcat/Wildfly/Glassfish startup?
- Thymeleaf – How to loop a list by index
- Besides EAR and EJB, what do I get from a Java EE app server that I don’t get in a servlet container like Tomcat?
- Java 11 package javax.xml.soap does not exist [duplicate]
- Quartz retry when failure
- Access Spring beans from a servlet in JBoss
- Proper usage of JDBC Connection Pool (Glassfish)
- LOAD and CACHE application-scoped data with @Singleton and @Stateless
- Session TimeOut in web.xml
- Spring Data JPA: How can Query return Non- Entities Objects or List of Objects?
- Simple example for Quartz 2.2 and Tomcat 7
- How to check whether Quartz cron job is running?
- Why do we use web.xml? [closed]