Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Building the Proxys > The Cast Proxy

The Cast Proxy

Class

CastProxy.as

Responsibilities

The CastProxy only needs to worry about creating, saving, and deleting CastVOs, and making sure that loaded VOs are cached in memory and removed when deleted. In a future iteration, where editing of the Cast is enabled, the CastProxy will also handle loading of the CastVO.

  • Extend AbstractProxy to inherit persistence and indexing functionality

  • When the CastProxy is registered (not in the constructor), connect to the cast folder

  • Override the superclass getVoInstance method, returning a CastVO instance created with the XML passed into the method (necessary because the superclass only knows ValueObject, so when the XML is read by superclass, this method provides the facility for creating the right ValueObject subclass)


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial