tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/985-where-does-persistencemanager-fitRobotlegs: Discussion 2012-08-25T14:42:58Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/177980782012-08-03T08:37:13Z2012-08-03T08:37:13ZWhere does PersistenceManager fit?<div><p>Hi Chris,</p>
<p>I'm definitely in favour of wrapping services in your own
service - that's the 'best' approach that I know of (if you search
around you'll find Shaun concurs, he answered a similar question
last week).</p>
<p>As you say, it allows you to implement the eventDispatcher and
your own interface. More importantly, it decouples you from that
implementation, so that if it turns out that PersistenceManager has
a bug, you can implement a layer that fixes it. It also isolates
you from API changes - perhaps less likely in this case, but a
general rule for 3rd party code is to keep it at arm's length.</p>
<p>hth,</p>
<p>Stray</p></div>Stray