[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: New package structure

ataylor do-not-reply at jboss.com
Wed Feb 27 07:55:07 EST 2008


anonymous wrote : The class Deployer isn't an interface :) 

you know what i mean :)

anonymous wrote : Just instantiate them directly in the messaging server. So yes, we have a dependency on the implementation for construction, but not thereafter. This also makes unit testing a lot easier.

That was my point, we shouldn't be Dependant on the implementation for anything if we use interfaces. If its pluggable it should be an interface and should be injected, if it isnt, then do we really need an interface? 

Just playing devils advocate! :) 

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

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



More information about the jboss-dev-forums mailing list