01: /*
02: * All content copyright (c) 2003-2007 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.object.util.ReadOnlyException;
08:
09: /**
10: * Event context for a {@link ReadOnlyObjectEvent}
11: */
12: public class ReadOnlyObjectEventContext extends
13: AbstractLockEventContext {
14:
15: private static final long serialVersionUID = 4788562594133534828L;
16:
17: public ReadOnlyObjectEventContext(Object pojo, String threadName,
18: String clientId, ReadOnlyException exception) {
19: this (pojo, null, null, threadName, clientId, exception);
20: }
21:
22: public ReadOnlyObjectEventContext(Object pojo, String className,
23: String fieldName, String threadName, String clientId,
24: ReadOnlyException exception) {
25: super (pojo, className, fieldName, threadName, clientId,
26: exception);
27: }
28:
29: /**
30: * @return Get read only exception that occurred
31: */
32: public ReadOnlyException getReadOnlyException() {
33: return (ReadOnlyException) getException();
34: }
35: }
|