| java.lang.Object com.tc.lang.StartupHelper
StartupHelper | public class StartupHelper (Code) | | The purpose of this class to execute a startup action (ie. "start the server", or "start the client", etc) in the
specified thread group. The side effect of doing this is that any more threads spawned by the startup action will
inherit the given thread group. It is somewhat fragile, and sometimes impossible (see java.util.Timer) to be explicit
about the thread group when spawning threads
XXX: At the moment, this class uses a hack of adjusting the current thread's group to the desired target group. A
nicer approach would be to start a new thread in the desiered target group and run the action in that thread and
join() it, except that can introduce locking problems (see MNK-65)
|
Inner Class :public interface StartupAction | |
Method Summary | |
public void | startUp() |
StartupHelper | public StartupHelper(ThreadGroup threadGroup, StartupAction action)(Code) | | |
startUp | public void startUp()(Code) | | |
|
|