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.admin.common;
05:
06: import com.tc.object.appevent.ApplicationEventContext;
07: import com.tc.object.appevent.UnlockedSharedObjectEvent;
08: import com.tc.object.appevent.UnlockedSharedObjectEventContext;
09:
10: public class UnlockedSharedWorkState extends AbstractWorkState {
11: private UnlockedSharedObjectEvent fEvent;
12:
13: public UnlockedSharedWorkState(UnlockedSharedObjectEvent event) {
14: fEvent = event;
15: }
16:
17: public UnlockedSharedObjectEvent getEvent() {
18: return fEvent;
19: }
20:
21: public UnlockedSharedObjectEventContext getEventContext() {
22: return fEvent.getUnlockedSharedObjectEventContext();
23: }
24:
25: public String descriptionFor(ApplicationEventContext context) {
26: if (!(context instanceof UnlockedSharedObjectEventContext))
27: return "";
28: return null;
29: }
30:
31: public String summary() {
32: return "Unlocked shared object exception";
33: }
34: }
|