|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.extend.server.deployment.danube.ThreadContextHandler
public class ThreadContextHandler
This class represents thread context handler. This connection handler sets given module's class loader as context class loader for the thread it operaters under and then invokes further handler. It is helpful since rest of the chain executed after this connection handler have thread with context class loader as of given module's that loaded them.
Field Summary | |
---|---|
protected org.abstracthorizon.danube.connection.ConnectionHandler |
handler
Handler to be invoked |
protected Module |
module
Module this thread is executing under |
Constructor Summary | |
---|---|
ThreadContextHandler(org.abstracthorizon.danube.connection.ConnectionHandler handler,
Module module)
Constructor |
Method Summary | |
---|---|
void |
handleConnection(org.abstracthorizon.danube.connection.Connection connection)
This method creates sets context path to be same as context path up to here plus this component's path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Module module
protected org.abstracthorizon.danube.connection.ConnectionHandler handler
Constructor Detail |
---|
public ThreadContextHandler(org.abstracthorizon.danube.connection.ConnectionHandler handler, Module module)
Method Detail |
---|
public void handleConnection(org.abstracthorizon.danube.connection.Connection connection)
/"
- Specified by:
handleConnection
in interface org.abstracthorizon.danube.connection.ConnectionHandler
- Parameters:
connection
- socket connection
- Throws:
IOException
- io exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |