Saturday 15 April 2006

Strecks = Struts Extensions สำหรับ Java 5

Strecks (แทนคำว่า Struts Extensions , http://strecks.sourceforge.net/) เป็น open source extension ของ Struts framework
มีเป้าหมายเพื่อให้ Struts ใช้ได้ Java 5 Strecks พัฒนาโดยใช้ code ของ Struts 1.2.x เป็นฐาน

Strecks ประกอบด้วย feature ต่างๆ ที่ช่วยปรับปรุง Struts ให้มีประสิทธิภาพดีขึ้น โดยเฉพาะการใช้ annotation มาช่วยแบ่งเบาภาระของนัก
พัฒนา เช่น
* POJO action beans with no framework dependencies
* action vs. controller separation. Request processing logic is encapsulated into Action controllers, simplifying action
implementations
* annotation-based dependency injection (typed request parameters, session attributes, Spring beans, and others)
* annotation-based form validators (XML and code-free)
* annotation-based data binding from form properties to domain model
* annotations for additional per-field control over type conversion
* simplified mechanisms to support navigation and redirecting after posts
* pluggable navigation using annotations
* pre- and post-action interceptors, with access to dependency resolved action beans as well as full runtime context

Struts เป็น framework สำหรับพัฒนาเว็บแอพพลิเคชัน โดย implement แนวคิดแบบ Model-View-Controller มีจุดเด่นที่มี maintainability ที่ดี

เป็นที่น่าสังเกตว่า framework ใหม่ๆ ที่ออกมา จะใช้ xml file หรือไม่ก็ annotation มากขึ้น เพื่อลดความซับซ้อนของ code เช่น Struts,JSF
ต่อไปพอใช้ xml file เยอะๆ อาจมี framework ที่ออกมาเพื่อ maintain หรือลดความซับซ้อนของ xml บ้างก็ได้ ใครจะรู้

ที่มา http://www.theserverside.com/news/thread.tss?thread_id=39840