The only reason for that downcast is to get at "global" resources
for the bootstrap context. It is not downcasting to use the object as a 
deployer.

This is just lazy/bad design on my part.

It should really be using injection, i.e. the deployer does the following 
during deployment
deployment.setXXX(...)
rather than the deployment lazily doing
deployer.getXXX()

This would need a hook in SimpleSubDeployerSupport.registerDeployment
so each subclass can do the injection after the instantiation of the deployment 
object.

There is already a task to improve this area of the RARDeployer:
http://jira.jboss.com/jira/browse/JBJCA-10


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858701#3858701

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858701


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to