First post. I have a lot of experience writing PHP, specifically custom plugins for WordPress. It's probably a topic of debate, but I do understand the design point of WP in terms of how hooks and filters work, in that platform. Very simply stated, a hook is comprised of an action and a call-back function that responds to that action. For example, there is a hook (paraphrasing here) called "When a user submits a new post". Based on that event happening, I can register a call-back function that implements "Send Chuck a text message when any user submits a new post".
So basically, the platform is extensible without having to touch any of the core WP code.
At my job now, I am about to embark on the creation of a Java web application. I wrote a lot of Java. but it was many years ago, so I have a lot to relearn. One thing I would like to do is design the system for ease of extension. So my question is, what should I go learn/study about best practices for doing this in Java?
Do I strive to model the WP paradigm and embed action "firing" code within my Java classes? Or is there a better way to think about this?
Chuck Cintron wrote:Java web application
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
posted 4 years ago
Thanks...I am talking about a traditional Java application running on a server (in this case Websphere), along with a client-side UX in a browser...thinking of handling that part as close to a single-page web app as possible, levering jQuery and AJAX, etc.
I've done some reading about using the Spring framework and also the OSGi pattern...my head hurts. But if that's the right answer I will work through it.