spring mvc - Do AOP violate layered architecture for enterprise apps? -
the question(as stated in title) comes me looking @ spring mvc 3.1 annotation support , considering ddd upcoming project. in new spring pojo business methods can annotated act controller, concerns have addressed within controller class can expressed exclusively through annotations.
so, technically can take class , wire act controller , java code free controller specific code, hence java code deal things checking security , starting txn etc. such class belong presentation or application layer ??
taking argument further , can pull out things security, txn mgmt , express them through annotations , java code of domain object. mean have fused 2 layers? please clarify
you can't take pojo , make controller. controller's job inputs browser, call services, prepare model view, , return view dispatch to. it's still controller. instead of configuring through xml , method overrides, configure through annotations, that's all.
the code far being free controller specific code. still uses modelandview, bindingresult, etc.
Comments
Post a Comment