|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.ioc.internal.services.PerthreadManagerImpl
public class PerthreadManagerImpl
| Constructor Summary | |
|---|---|
PerthreadManagerImpl(org.slf4j.Logger logger)
|
|
| Method Summary | ||
|---|---|---|
void |
addThreadCleanupListener(ThreadCleanupListener listener)
Adds a listener to the hub. |
|
void |
cleanup()
Instructs the hub to notify all its listeners (for the current thread). |
|
|
createValue()
Creates a value using a unique internal key. |
|
|
invoke(Invokable<T> invokable)
Returns the result from the invocation, providing a try...finally to cleanup after. |
|
void |
run(Runnable runnable)
Invokes Runnable.run(), providing a try...finally to cleanup after. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PerthreadManagerImpl(org.slf4j.Logger logger)
| Method Detail |
|---|
public void addThreadCleanupListener(ThreadCleanupListener listener)
PerthreadManagerPerthreadManager.cleanup().
addThreadCleanupListener in interface PerthreadManagerlistener - to addpublic void cleanup()
cleanup in interface PerthreadManagerpublic <T> PerThreadValue<T> createValue()
PerthreadManager
createValue in interface PerthreadManagerpublic void run(Runnable runnable)
PerthreadManagerRunnable.run(), providing a try...finally to cleanup after.
run in interface PerthreadManagerpublic <T> T invoke(Invokable<T> invokable)
PerthreadManager
invoke in interface PerthreadManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||