uk.org.iscream.cms.corbaservices
Class CorbaServices.ServiceThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--uk.org.iscream.cms.corbaservices.CorbaServices.ServiceThread
All Implemented Interfaces:
Runnable
Enclosing class:
CorbaServices

private static class CorbaServices.ServiceThread
extends Thread

Inner class to provide a thread for running a Service.


Field Summary
(package private)  Object[] _args
          The array of arguments
(package private)  Method _mainMethod
          The method we'll treat as main
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
(package private) CorbaServices.ServiceThread(Method mainMethod, Object[] args)
          The constructor takes the name of the method we're gonna run and the arguments we're gonna pass into it.
 
Method Summary
 void run()
          Invokes our main method, with the arguments we have been given.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_mainMethod

Method _mainMethod
The method we'll treat as main


_args

Object[] _args
The array of arguments

Constructor Detail

CorbaServices.ServiceThread

CorbaServices.ServiceThread(Method mainMethod,
                            Object[] args)
The constructor takes the name of the method we're gonna run and the arguments we're gonna pass into it.

Parameters:
mainMethod - a method that we'll treat as main
args - an array of arguments for mainMethod
Method Detail

run

public void run()
Invokes our main method, with the arguments we have been given.

Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2000-2003 i-scream. All Rights Reserved.