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.objectserver.core.api.ServerConfigurationContext;
10: import com.tc.objectserver.tx.TransactionalObjectManager;
11:
12: public class ApplyCompleteTransactionHandler extends
13: AbstractEventHandler {
14:
15: private TransactionalObjectManager txnObjectMgr;
16:
17: public void handleEvent(EventContext context) {
18: this .txnObjectMgr.processApplyComplete();
19: }
20:
21: public void initialize(ConfigurationContext context) {
22: super .initialize(context);
23: ServerConfigurationContext oscc = (ServerConfigurationContext) context;
24: txnObjectMgr = oscc.getTransactionalObjectManager();
25: }
26:
27: }
|