|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.jsrvany.ServiceControlManager
This class is a ServiceControlManager implemented as a singleton. It handles communication between the winNT service control window and the listening applications, passing the generated events onto applications
Copyright (c) 2000 Damian Fauth
Method Summary | |
void |
addServiceControlListener(ServiceControlListener scl)
add a specified ServiceControlListener |
static ServiceControlManager |
getInstance()
get the one allowed instance of this singleton ServiceControlManager |
java.util.Enumeration |
getServiceControlListeners()
get all ServiceControlListeners registered with this ServiceControlManager |
void |
notifyAllListeners(ContinueServiceControlEvent e)
notify all registered listeners of a ServiceControlEvent |
void |
notifyAllListeners(InterrogateServiceControlEvent e)
notify all registered listeners of a ServiceControlEvent |
void |
notifyAllListeners(PauseServiceControlEvent e)
notify all registered listeners of a ServiceControlEvent |
void |
notifyAllListeners(StartServiceControlEvent e)
notify all registered listeners of a ServiceControlEvent |
void |
notifyAllListeners(StopServiceControlEvent e)
notify all registered listeners of a ServiceControlEvent |
void |
notifyAllListeners(TerminateServiceControlEvent e)
notify all registered listeners of a ServiceControlEvent |
void |
removeAllServiceControlListener()
remove all ServiceControListeners registered with this manager |
void |
removeServiceControlListener(ServiceControlListener scl)
remove a specified ServiceControlListener |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static ServiceControlManager getInstance()
public void addServiceControlListener(ServiceControlListener scl)
scl
- is the ServiceControlListener to be addedpublic void removeServiceControlListener(ServiceControlListener scl)
scl
- is the ServiceControlListener to be addedpublic void removeAllServiceControlListener()
public void notifyAllListeners(StopServiceControlEvent e) throws ServiceControlException
e
- is the event typed as the appropriate subsclass of ServiceControlEventpublic void notifyAllListeners(StartServiceControlEvent e) throws ServiceControlException
e
- is the event typed as the appropriate subsclass of ServiceControlEventpublic void notifyAllListeners(PauseServiceControlEvent e) throws ServiceControlException
e
- is the event typed as the appropriate subsclass of ServiceControlEventpublic void notifyAllListeners(ContinueServiceControlEvent e) throws ServiceControlException
e
- is the event typed as the appropriate subsclass of ServiceControlEventpublic void notifyAllListeners(TerminateServiceControlEvent e) throws ServiceControlException
e
- is the event typed as the appropriate subsclass of ServiceControlEventpublic void notifyAllListeners(InterrogateServiceControlEvent e) throws ServiceControlException
e
- is the event typed as the appropriate subsclass of ServiceControlEventpublic java.util.Enumeration getServiceControlListeners()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |