DeclarativeWebScript versus AbstractWebScript
The web script framework in Alfresco provides two different helper classes from which the Java-backed controller can be derived. It's important to understand the difference between them.
The first helper class is the one we used while developing the web script in this chapter, org.springframework.extensions.webscripts.DeclarativeWebScript
. The second one is org.springframework.extensions.webscripts.AbstractWebScript
.
DeclarativeWebScript
in turn only extends the AbstractWebScript
class.
If the Java-backed controller is derived from DeclarativeWebScript
, then execution assistance is provided by the DeclarativeWebScript
class. This helper class basically encapsulates the execution of the web script and ...
Get Learning Alfresco Web Scripts now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.