| java.lang.Object com.quadcap.server.ServiceContainer
ServiceContainer | public class ServiceContainer (Code) | | Main service container object.
author: Stan Bailes |
ServiceContainer | public ServiceContainer()(Code) | | Default constructor
|
addService | public void addService(String serviceName, String serviceClass, Properties serviceProps) throws Exception(Code) | | Add the service with the specified name, class name, and config
file.
Parameters: Exception - may be thrown during service construction orinitialization |
getService | public static Service getService(String name)(Code) | | Return the service with the specified name
Parameters: name - |
init | public void init(String configFile) throws Exception(Code) | | Parse the server.xml file and load all the services defined therein.
|
main | public static void main(String[] args)(Code) | | Main program: find config file and point the container at it.
|
serviceNames | public Iterator serviceNames()(Code) | | Return an iterator of service names
|
|
|