Aware Interfaces in Struts2
Aware Interfaces in Struts2
When a HTTP specific object is
required in Action ,Dependancy Injection and Inversion of control will be used
in Struts 2.For this technique some interfaces known as aware interfaces will
be injected into the action class.These interfaces are known as aware
Interfaces.These Interfaces names will ends with Aware ,that is why theses are
known as aware Interfaces.Aware Interfaces contains methods to set specific
resources into the action class.
In Struts 2 Dependancy Injection
pattern impements the required interface,which exposes some methods to the
action class.
Some of the aware interfaces which
supports Struts 2
Application Interfaces
SessionAware Interface
ParameterAware Interface
ServletRequestAware Interface
ServletResponseAware Interface
Comments
Post a Comment