Since WildFly Swarm is based upon WildFly 9.x, you have most of the power of WildFly available to you. This includes subsystems such as:

Additionally, if you want to provide your own main(…​) method to instantiate the Container , configure some of the subsystems, and perform whatever deployments you need, that’s possible also!