com.radekzitek.userver.impl
Class BasicListener
java.lang.Object
com.radekzitek.userver.ListenerThread
com.radekzitek.userver.impl.BasicListener
- All Implemented Interfaces:
- java.lang.Runnable
- public class BasicListener
- extends ListenerThread
- Author:
- rzitek
Field Summary |
(package private) java.lang.Class |
handlerClass
|
private static org.apache.log4j.Logger |
LOG
Log4j logger. |
(package private) java.net.ServerSocket |
server
|
(package private) java.net.InetSocketAddress |
serverAddress
|
Method Summary |
protected void |
listen()
Protorype for the actual listener work method. |
protected void |
localConfigure(java.util.Properties lc)
Prototype for the implemetation specific configuration method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final org.apache.log4j.Logger LOG
- Log4j logger.
server
java.net.ServerSocket server
serverAddress
java.net.InetSocketAddress serverAddress
handlerClass
java.lang.Class handlerClass
BasicListener
public BasicListener()
listen
protected void listen()
throws ListenerThreadException
- Description copied from class:
ListenerThread
- Protorype for the actual listener work method.
- Specified by:
listen
in class ListenerThread
- Throws:
ListenerThreadException
- Any exceptions caught within the listener implementation must
be dealt with or propagated out as a ListenerThreadException.
localConfigure
protected void localConfigure(java.util.Properties lc)
throws ListenerConfigurationException
- Description copied from class:
ListenerThread
- Prototype for the implemetation specific configuration method. Called by
the configure method. Any exception withing the localConfigure must be
dealt with or propagated as a ListenerConfigurationException.
- Specified by:
localConfigure
in class ListenerThread
- Parameters:
lc
- properties relevant to the listener
- Throws:
ListenerConfigurationException
- Thrown by the implementation class in case of configuration
problems.