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: /**
08: * Event is fired when there is an attempt to access a shared object outside the scope of
09: * a shared lock.
10: */
11: public class UnlockedSharedObjectEvent extends AbstractLockEvent {
12:
13: private static final long serialVersionUID = 1223477247234324L;
14:
15: public UnlockedSharedObjectEvent(
16: UnlockedSharedObjectEventContext context) {
17: super (context);
18: }
19:
20: /**
21: * @return Get context specific to this event
22: */
23: public UnlockedSharedObjectEventContext getUnlockedSharedObjectEventContext() {
24: return (UnlockedSharedObjectEventContext) getApplicationEventContext();
25: }
26:
27: public String getMessage() {
28: return "Attempt to access a shared object outside the scope of a shared lock. "
29: + "All access to shared objects must be within the scope of one or more shared locks defined in your Terracotta configuration.";
30: }
31: }
|