Currently I have these services defined:
- JBossNodeHandler (role = "jboss")
- JBossDeployHandler (abstract)
- JBossDeployPassHandler (role = "pass")
- JBossDeployAlexHandler (role = "alex")
This allows me to use the folowing .properties file:
If I want to add a new service, I would need to create another subclass of JBossDeployHandler to create a new role which i can then use in the .properties file. Since all application deploys on jboss typically need the same procedure to deploy, it would be handy if I could just have 1 implementation (eg: JBossDeployHandler) that I can give multiple role names, so that i can just add new applications to the .properties file without needing to create new subclasses.
My subclasses currently are just dummy classes like: