Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Gets an array of the start classes that were constructed at server start time.
Object[] ServerContext.getStartClassInstances()
An array of start classes that were constructed at server start time, or an array of length zero if there are no start classes.
For more information, see User-defined start classes.
The following example demonstrates how to use the getStartClassInstances method:
Object objs[] = sc.getStartClassInstances(); int i; for (i=0; i < objs.length; i += 1) { if (objs[i] instanceof MyClass) { // Use class. } }