A subsystem is a nice way to go.
Is there an API that JBoss provides for the subsystem code to trigger events for "onAppDeployed" for example? And then an API to scan the classpath for a module at deploy-time?
Now that deployments are based on the JBoss Modules project, I'm lost as to how to add a validator during the deployment cycle.