Filled in JavaDoc for trivial methods

This commit is contained in:
Trustin Lee 2008-09-03 04:10:04 +00:00
parent 38b3f4fa98
commit 6b004f861b
6 changed files with 25 additions and 0 deletions

View File

@ -36,6 +36,9 @@ public class DefaultChannelEvent implements ChannelEvent {
private final Channel channel;
private final ChannelFuture future;
/**
* Creates a new instance.
*/
public DefaultChannelEvent(Channel channel, ChannelFuture future) {
if (channel == null) {
throw new NullPointerException("channel");
@ -55,6 +58,9 @@ public class DefaultChannelEvent implements ChannelEvent {
return future;
}
/**
* Returns the {@link String} representation of this event.
*/
@Override
public String toString() {
return channel.toString();

View File

@ -37,6 +37,9 @@ public class DefaultChannelStateEvent extends DefaultChannelEvent implements
private final ChannelState state;
private final Object value;
/**
* Creates a new instance.
*/
public DefaultChannelStateEvent(
Channel channel, ChannelFuture future,
ChannelState state, Object value) {

View File

@ -36,6 +36,9 @@ public class DefaultChildChannelStateEvent extends DefaultChannelEvent implement
private final Channel childChannel;
/**
* Creates a new instance.
*/
public DefaultChildChannelStateEvent(
Channel channel, ChannelFuture future, Channel childChannel) {

View File

@ -38,6 +38,9 @@ public class DefaultExceptionEvent extends DefaultChannelEvent implements
private final Throwable cause;
/**
* Creates a new instance.
*/
public DefaultExceptionEvent(Channel channel, ChannelFuture future, Throwable cause) {
super(channel, future);
if (cause == null) {

View File

@ -43,6 +43,9 @@ public class DefaultMessageEvent extends DefaultChannelEvent implements
private final Object message;
private final SocketAddress remoteAddress;
/**
* Creates a new instance.
*/
public DefaultMessageEvent(
Channel channel, ChannelFuture future,
Object message, SocketAddress remoteAddress) {

View File

@ -65,6 +65,13 @@ public class SimpleChannelHandler implements ChannelUpstreamHandler {
private static final InternalLogger logger =
InternalLoggerFactory.getInstance(SimpleChannelHandler.class.getName());
/**
* Creates a new instance.
*/
public SimpleChannelHandler() {
super();
}
/**
* {@inheritDoc} Down-casts the received upstream event into more
* meaningful sub-type event and calls an appropriate handler method with