ç°¡åã«ã§ãããã§æå¤ã¨é¢å㪠package é ä¸ã®ã¯ã©ã¹ä¸è¦§ãåå¾ããæ¹æ³ã«ã¤ãã¦ã Guava ã® ClassPath å©ç¨ Reflections å©ç¨ Spring ã©ã¤ãã©ãªå©ç¨ãªã ToolProvider ã§åå¾ Guava ã® ClassPath å©ç¨ ClassPath ã使ãã°ç°¡åã«åå¾ã§ããã ClassLoader loader = Thread.currentThread().getContextClassLoader(); Set<Class<?>> allClasses = ClassPath.from(loader) .getTopLevelClasses("my.package").stream() .map(info -> info.load()) .collect(Collectors.toSet()); å帰çã«åãããå ´å㯠getTopLevel
{{#tags}}- {{label}}
{{/tags}}