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.net.core.event;
06:
07: import com.tc.net.core.TCConnection;
08:
09: /**
10: * A generic connection event. Not very interesting
11: *
12: * @author teck
13: */
14: public class TCConnectionEvent {
15:
16: private final TCConnection connection;
17:
18: public TCConnectionEvent(final TCConnection connection) {
19: this .connection = connection;
20: }
21:
22: /**
23: * The source of this event (ie. the connection that generated it)
24: */
25: public final TCConnection getSource() {
26: return connection;
27: }
28:
29: public String toString() {
30: return connection.toString();
31: }
32: }
|