protected void startLifecycleServices(String[][] s, ServerContext sc) {
services = new ServerLifecycle[s.length];
for (int i =0; i < s.length; i ++) {
try {
String service = s[i][1];
ServerLifecycle slc = (ServerLifecycle)
Class.forName(service).newInstance();
services[i] = slc;
slc.onInitialization(sc);
} catch (Exception e) {
_logger.log(Level.WARNING, e.getMessage(), e);
}
}
for (ServerLifecycle slc : services) {
try {
slc.onStartup(sc);
} catch (Exception e) {
e.printStackTrace();
}
}
for (ServerLifecycle slc : services) {
try {
slc.onReady(sc);
} catch (Exception e) {
_logger.log(Level.WARNING, e.getMessage(), e);
}
}
}