2.17.2: 2011-06-17

net.sf.basedb.clients.web.extensions.service
Class Services

java.lang.Object
  extended by net.sf.basedb.clients.web.extensions.service.Services

public class Services
extends Object

Utility class for starting and stopping services.

Version:
2.8
Author:
nicklas
Last modified
$Date: 2008-10-30 11:41:41 +0100 (Thu, 30 Oct 2008) $

Field Summary
static String EXTENSION_POINT_ID
           
private static boolean initialised
           
private static Logger log
           
private static Settings settings
           
 
Constructor Summary
Services()
           
 
Method Summary
static void close()
          Stop all services.
private static ExtensionsInvoker<ServiceControllerAction> getInvoker(Extension extension)
           
static void init(Registry registry, Settings s)
          Initialise and start the installed services.
(package private) static void start(Extension ext)
          Start services as a result of an administrator has installed a new extension or updated/enabled an existing on.
(package private) static void stop(Extension ext)
          Start services as a result of an administrator has uninstalled an extension or is updating/disabling an existing on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final Logger log

EXTENSION_POINT_ID

public static final String EXTENSION_POINT_ID
See Also:
Constant Field Values

initialised

private static boolean initialised

settings

private static Settings settings
Constructor Detail

Services

public Services()
Method Detail

init

public static void init(Registry registry,
                        Settings s)
Initialise and start the installed services. Called when the web server is started up.


close

public static void close()
Stop all services.


start

static void start(Extension ext)
Start services as a result of an administrator has installed a new extension or updated/enabled an existing on.

Parameters:
ext - The extension, or null to start all enabled extension

stop

static void stop(Extension ext)
Start services as a result of an administrator has uninstalled an extension or is updating/disabling an existing on.

Parameters:
ext - The extension, or null to stop all enabled extension

getInvoker

private static ExtensionsInvoker<ServiceControllerAction> getInvoker(Extension extension)

2.17.2: 2011-06-17