This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enable/Disable Modules Strategy

 
Luciano A. Pozzo
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a project divided in several modules (or several spring projects). And some modules can work with and without dependecies. So, the question is: what is the best approach to advise a module that a dependency is enabled or disabled?

Today we are using beans, declared in the spring xml, example:



But we think that it's not a safe approach, because the client can enable the module just changing the spring xml. And we cannot remove the dependency , because dependent modules use the interfaces.

Thank's
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic