?
-
I have a ConnnectionListener that has connectionOpened and
connectionClosed methods.
I have a ClientConnectionListener that extends ConnectionListener and
has several other specific methods.
I have a Connection class that has
addConnectionListener(ConnectionListener cl) {
...add(ConnectionListener.class, cl);
}
It seems that adding it requires "ConnectionListener.class".
Does this mean that my ClientConnection has to :
1) Override the addConnectionListener and change it to
"ClientConnectionListener.class" or
2) Create a method
addClientConnectionListener(ClientConnectionListener...) ?
connectionClosed methods.
I have a ClientConnectionListener that extends ConnectionListener and
has several other specific methods.
I have a Connection class that has
addConnectionListener(ConnectionListener cl) {
...add(ConnectionListener.class, cl);
}
It seems that adding it requires "ConnectionListener.class".
Does this mean that my ClientConnection has to :
1) Override the addConnectionListener and change it to
"ClientConnectionListener.class" or
2) Create a method
addClientConnectionListener(ClientConnectionListener...) ?