getStartClassInstances method

Syntax
public java.lang.Object[ ] getStartClassInstances( )

Gets an array of the start classes that were constructed at server start time. The array length is zero if there are no start classes.

Returns

An array of start classes that were constructed at server start time, or an array of length zero if there are no start classes.

Example

Following is an example that uses getStartClassInstances():

Object objs[] = sc.getStartClassInstances();
int i;
for( i=0; i < objs.length; i += 1 ) {
  if( objs[i] instanceof MyClass ) {
    // Use class.
  }
}
See also