com.jpackages.execj
Class ServiceEvents

java.lang.Object
  extended by com.jpackages.execj.ServiceEvents

public abstract class ServiceEvents
extends java.lang.Object

This class provides the ability to define a ServiceListener.

Example:

 // 'this' implements ServiceListener
 ServiceEvents.setServiceListener(this);
 

Copyright (c) 2001-2007

Author:
JPackages.com

Constructor Summary
ServiceEvents()
           
 
Method Summary
static ServiceListener getServiceListener()
          Retrieve the current ServiceListener.
static void setServiceListener(ServiceListener sl)
          Set a ServiceListener for this application.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceEvents

public ServiceEvents()
Method Detail

setServiceListener

public static void setServiceListener(ServiceListener sl)

Set a ServiceListener for this application.

Parameters:
serviceListener - A class implementing ServiceListener

getServiceListener

public static ServiceListener getServiceListener()

Retrieve the current ServiceListener.

Returns:
The current ServiceListener