1 /*2 * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright3 * notice. All rights reserved.4 */5 package com.tc.objectserver.handler;6 7 import com.tc.async.api.AbstractEventHandler;8 import com.tc.async.api.ConfigurationContext;9 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 }28