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.object.appevent;
06:
07: import com.tc.util.NonPortableReason;
08:
09: /**
10: * Event context for a {@link NonPortableObjectEvent}
11: */
12: public class NonPortableEventContext extends
13: AbstractApplicationEventContext {
14:
15: private static final long serialVersionUID = 4788562594133534828L;
16:
17: public NonPortableEventContext(Object pojo, String threadName,
18: String clientId) {
19: super (pojo, threadName, clientId);
20: }
21:
22: /**
23: * Enhance the reason with some additional details specific to this context
24: * @param reason The reason, which will be modified
25: */
26: public void addDetailsTo(NonPortableReason reason) {
27: reason.addDetail("Thread", getThreadName());
28: reason.addDetail("JVM ID", getClientId());
29: }
30: }
|