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: /**
08: * Abstract base event class to handle storage of common event state
09: */
10: public abstract class AbstractApplicationEvent implements
11: ApplicationEvent {
12:
13: private static final long serialVersionUID = 1323477247234324L;
14:
15: private final ApplicationEventContext applicationEventContext;
16:
17: /**
18: * Construct new event given a context
19: * @context The context
20: */
21: public AbstractApplicationEvent(ApplicationEventContext context) {
22: this .applicationEventContext = context;
23: }
24:
25: public ApplicationEventContext getApplicationEventContext() {
26: return applicationEventContext;
27: }
28:
29: public abstract String getMessage();
30: }
|