Can someone point me in the right direction on how I could create a custom deployer in the JBoss 4.0.5.GA
Extend this class:
http://docs.jboss.org/jbossas/javadoc/4.0.1-sp1/system/org/jboss/deployment/SubDeployerSupport.html
There's probably more info out there. You should be able to copy an existing deployer, though, and get yours to work similarly.