01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.objectserver.handler;
05:
06: import com.tc.async.api.AbstractEventHandler;
07: import com.tc.async.api.ConfigurationContext;
08: import com.tc.async.api.EventContext;
09: import com.tc.async.api.EventHandler;
10: import com.tc.objectserver.context.RecallObjectsContext;
11: import com.tc.objectserver.core.api.ServerConfigurationContext;
12: import com.tc.objectserver.tx.TransactionalObjectManager;
13:
14: public class RecallObjectsHandler extends AbstractEventHandler
15: implements EventHandler {
16:
17: private TransactionalObjectManager txnObjectMgr;
18:
19: public void handleEvent(EventContext context) {
20: RecallObjectsContext roc = (RecallObjectsContext) context;
21: txnObjectMgr.recallCheckedoutObject(roc);
22: }
23:
24: public void initialize(ConfigurationContext context) {
25: super .initialize(context);
26: ServerConfigurationContext oscc = (ServerConfigurationContext) context;
27: txnObjectMgr = oscc.getTransactionalObjectManager();
28: }
29:
30: }
|