|
PooliT v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ascentphase.poolit.handlers.BaseHandler
org.ascentphase.poolit.handlers.InitialContextHandler
Handler for InitialContext objects. InitialContext objects are good candidates to be pooled because the specifications state that the object is not synchronized against concurrent access. Either multiple threads provide proper locking to prevent concurrent access to one InitialContext, or each thread uses its own InitialContext. Pooling would allow multiple threads to use different InitialContext objects without incurring the overhead of creating one each time.
| Constructor Summary | |
InitialContextHandler()
Construct a handler to create InitialContext's with no initialization properties. |
|
InitialContextHandler(java.util.Hashtable props)
Construct a handler to create InitialContext's with the given properties. |
|
| Method Summary | |
java.lang.Object |
create()
Called by a Pooler to create a new object. |
void |
destroy(java.lang.Object o)
Closes the InitialContext before being garbage-collected. |
| Methods inherited from class org.ascentphase.poolit.handlers.BaseHandler |
verify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InitialContextHandler()
public InitialContextHandler(java.util.Hashtable props)
props - initialization properties passed to InitialContext.| Method Detail |
public java.lang.Object create()
throws CreateException
PoolHandler
create in interface PoolHandlercreate in class BaseHandlerCreateExceptionPoolHandler.create()public void destroy(java.lang.Object o)
destroy in interface PoolHandlerdestroy in class BaseHandlero - the InitialContext object to destroy.
|
PooliT v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||