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