Xindice API

org.apache.xindice.server.standard
Class StdServiceManager

java.lang.Object
  |
  +--org.apache.xindice.server.standard.StdServiceManager
All Implemented Interfaces:
Configurable, Disposable, KernelAccess, ServiceManager

public final class StdServiceManager
extends java.lang.Object
implements Configurable, ServiceManager, KernelAccess, Disposable

StdServiceManager


Constructor Summary
StdServiceManager()
           
 
Method Summary
 boolean addService(Service service)
          addService adds a Service to the ServiceManager.
 void dispose()
          dispose disposes of the object instance.
 Configuration getConfig()
          getConfig retrieves the configuration information for the Configurable object instance.
 Service getService(java.lang.String name)
          getService retrieves a Service from the ServiceManager by name.
 java.lang.String[] listServices()
          listServices returns a list of available Service names.
 boolean removeService(Service service)
          removeService removes a Service from the ServiceManager.
 void setConfig(Configuration config)
          setConfig sets the configuration information for the Configurable object instance.
 void setKernel(Kernel kernel)
          setKernel provides a Kernel callback interface to the implementing object.
 boolean startServices()
          startServices starts all of the available ServiceManager Services if they aren't already started.
 void stopServices()
          stopServices stops all of the available ServiceManager Services.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdServiceManager

public StdServiceManager()
Method Detail

setKernel

public void setKernel(Kernel kernel)
Description copied from interface: KernelAccess
setKernel provides a Kernel callback interface to the implementing object.
Specified by:
setKernel in interface KernelAccess
Following copied from interface: org.apache.xindice.server.KernelAccess
Parameters:
kernel - the Kernel reference

setConfig

public void setConfig(Configuration config)
Description copied from interface: Configurable
setConfig sets the configuration information for the Configurable object instance.
Specified by:
setConfig in interface Configurable
Following copied from interface: org.apache.xindice.util.Configurable
Parameters:
config - The configuration Node

getConfig

public Configuration getConfig()
Description copied from interface: Configurable
getConfig retrieves the configuration information for the Configurable object instance.
Specified by:
getConfig in interface Configurable
Following copied from interface: org.apache.xindice.util.Configurable
Returns:
The configuration Node

startServices

public boolean startServices()
Description copied from interface: ServiceManager
startServices starts all of the available ServiceManager Services if they aren't already started.
Specified by:
startServices in interface ServiceManager
Following copied from interface: org.apache.xindice.server.ServiceManager
Returns:
whether or not the Services could be started

stopServices

public void stopServices()
Description copied from interface: ServiceManager
stopServices stops all of the available ServiceManager Services.
Specified by:
stopServices in interface ServiceManager

addService

public boolean addService(Service service)
Description copied from interface: ServiceManager
addService adds a Service to the ServiceManager.
Specified by:
addService in interface ServiceManager
Following copied from interface: org.apache.xindice.server.ServiceManager
Parameters:
service - the Service to add
Returns:
whether or not the Service could be added

removeService

public boolean removeService(Service service)
Description copied from interface: ServiceManager
removeService removes a Service from the ServiceManager.
Specified by:
removeService in interface ServiceManager
Following copied from interface: org.apache.xindice.server.ServiceManager
Parameters:
service - the Service to remove
Returns:
whether or not the Service could be removed

listServices

public java.lang.String[] listServices()
Description copied from interface: ServiceManager
listServices returns a list of available Service names.
Specified by:
listServices in interface ServiceManager
Following copied from interface: org.apache.xindice.server.ServiceManager
Returns:
the Service list

getService

public Service getService(java.lang.String name)
Description copied from interface: ServiceManager
getService retrieves a Service from the ServiceManager by name.
Specified by:
getService in interface ServiceManager
Following copied from interface: org.apache.xindice.server.ServiceManager
Parameters:
name - the Service name
Returns:
the retrieved Service

dispose

public void dispose()
Description copied from interface: Disposable
dispose disposes of the object instance.
Specified by:
dispose in interface Disposable

Xindice API

Copyright (c) 1999-2001 The Apache Software Foundation