Tag Info

New answers tagged

5

IMHO you can do this, and there may be situations where this is the most simple solution (for example, when you are forbidden to change the interface in any way), but to my experience a more SOLID approach is not to make the getLastExecutionOutput part of the strategy interface. That would eliminate the need for the AbstractStrategy class at all. Instead, ...


0

You can just use alarm() before calling the input functtion and write a signal handler for SIGALRM and terinate your program in the signal handler.


1

Here is one possible solution. There are others, but this seems like quite a simple way of doing it to me. I assume your site will be built using an MVC architecture, and that plugins provide three kinds of content: Java classes to implement controllers, JSP views, and static resource files that must be served. Deploy your application as an expanded ...


3

if my above observation is correct It depends. You may as well include everything in distribution and only configure each installation to use what it needs. Possible reasons for going with plugins are: You charge your plugins separately and don't want to give away features for free Your plugins are "heavy" in some way, e.g. there are lots of them or ...


1

Whether you can use the file structure to configure enabled or not depends on how you deploy your web application. Will the web app be deployed on the customers server? Then you can use the file structure. Will you deploy the web app on your own server? Then you won't be able to use file structure. In any case it's probably less complicated to include all ...



Top 50 recent answers are included