[Have also posted to
Java Forums, but I have better confidence in answers here, both in terms of quality and the number of folks looking!]
I've been examining the Java Pet Store application, specifically focusing on the admin Swing client and how it connects to the
servlet. My question is this: would the DataSource class be considered model, controller, or both, and where would you define the breakdown? I have the impression it's both - definitely model (responds to UI changes, UI listens for event changes from DataSource), but also controller in that its the only interface for the client to the application logic on the server. If, for example, my application wanted to provide functionality to add users via the UI, it'd forward that request through the DataSource, right? Which would make the DataSource part of the controller?