Created
October 31, 2015 22:59
-
-
Save aarchilla84/8450be64bcaed53410b6 to your computer and use it in GitHub Desktop.
JBoss modules - Service Loader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ServiceLoader<IPluginService> services = Module.getCallerModule().loadService(IPluginService.class); | |
for(IPluginService service:services){ | |
// Para cada uno de ellos ejecutamos una acción | |
log.info("MSG: {}", service.getMessage()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment