Book Image

Learning Alfresco Web Scripts

By : Ramesh Chauhan
Book Image

Learning Alfresco Web Scripts

By: Ramesh Chauhan

Overview of this book

Table of Contents (18 chapters)
Learning Alfresco Web Scripts
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

The custom implementation of a web script container


The web script container plays a key role in executing web scripts. The repository container works behind the scenes to execute repository web scripts at the Alfresco end. It would be interesting to know how to have a custom implementation for the web script container. Let's take a look at the service provider interface available in the out-of-the-box web script framework implementation to implement a web script container.

The org.springframework.extensions.webscripts.Container interface available in spring-webscripts-*.jar is the key interface that declares the core methods required to be implemented by any web script container. There is an additional set of methods declared in the org.springframework.extensions.webscripts.RuntimeContainer interface that also needs to be implemented for a web script container. RuntimeContainer basically extends the Container interface. In brief, the web script container class must implement org.springframework...