View Javadoc

1   package net.sf.josceleton.connection.impl;
2   
3   import net.sf.josceleton.connection.api.ConnectionListener;
4   import net.sf.josceleton.core.api.entity.message.JointMessage;
5   import net.sf.josceleton.core.api.entity.message.UserMessage;
6   
7   /**
8    * Utility method, to not have to implement all interface methods declared by <code>ConnectListener</code>.
9    * 
10   * Simply implement (override) only the methods you are really interested in. 
11   * 
12   * @since 0.4
13   */
14  public abstract class ConnectionAdapter implements ConnectionListener {
15  
16  	/** {@inheritDoc} from {@link ConnectionListener} */
17  	@Override public void onJointMessage(final JointMessage message) {
18  		// do nothing, as only subclass maybe will do something :)
19  	}
20  
21  	/** {@inheritDoc} from {@link ConnectionListener} */
22  	@Override public void onUserMessage(final UserMessage message) {
23  		// do nothing, as only subclass maybe will do something :)
24  	}
25  
26  }