|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.cornerstone.threads.tutorial.ThreadConsumer
ThreadConsumer is a example of a component that uses the ThreadManager service to aquired a thread pool.
Constructor Summary | |
ThreadConsumer()
|
Method Summary | |
void |
dispose()
Disposal of the component during which he handle the closue of the child thread we have establshed during the initialization stage. |
void |
initialize()
Initialization of the component by the container during which we establish a child thread by passing a runnable object to the thread pool. |
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
Servicing of the component by the container during which the component aquires the ThreadManager service. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ThreadConsumer()
Method Detail |
public void service(org.apache.avalon.framework.service.ServiceManager manager) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
manager
- the thread manager
org.apache.avalon.framework.service.ServiceException
- if the thread manager service is
unresolvablepublic void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
- if an initialization stage error occurspublic void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |