com.ibm.able.platform
Class AblePlatformSupport
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--com.ibm.able.platform.AblePlatformSupport
- public class AblePlatformSupport
- extends java.rmi.server.UnicastRemoteObject
- implements AblePlatform, java.io.Serializable
This class provides the remote implementation of the
AblePlatform interface.
This class is meant to be registered with RMI and then used to
gain access to other remote ABLE platform objects.
- Version:
- $Revision: 1.2 $, $Date: 2000/02/21 20:01:01 $
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
java.lang.Object |
getNewObject(java.lang.String theClassName)
Retrieve a reference to a new instance of the named class. |
java.lang.Object |
getNewObject(java.lang.String theClassName,
java.lang.Object[] theInitArgs)
Retrieve a reference to a new instance of the named class. |
java.lang.Object |
getTracer()
Retrieve the tracer object for this object factory. |
boolean |
isTraceActive()
Determine whether tracing is on. |
static void |
main(java.lang.String[] theArgs)
Create an ABLE platform object factory and register it with
RMI. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
AblePlatformSupport
public AblePlatformSupport()
throws java.rmi.RemoteException
- Create a new ABLE platform support object.
- Throws:
- java.rmi.RemoteException - On any error.
getNewObject
public java.lang.Object getNewObject(java.lang.String theClassName)
throws java.rmi.RemoteException
- Retrieve a reference to a new instance of the named class. The
specified class must have a null constructor.
- Specified by:
- getNewObject in interface AblePlatform
- Parameters:
theClassName
- The class name of the desired object.
The class name must represent a legitimate Remote,
Serializable object accessible via the classpath.
- Returns:
- A reference to a new, initialized object.
Obviously, the caller is responsible for casting the
returned object to the appropriate type.
- Throws:
- java.rmi.RemoteException - On any error.
getNewObject
public java.lang.Object getNewObject(java.lang.String theClassName,
java.lang.Object[] theInitArgs)
throws java.rmi.RemoteException
- Retrieve a reference to a new instance of the named class. The
instance is created by calling the class's constructor with the
specified arguments.
- Specified by:
- getNewObject in interface AblePlatform
- Parameters:
theClassName
- The class name of the desired object.
The class name must represent a legitimate Remote,
Serializable object accessible via the classpath.
theInitArgs
- An array of objects that will be passed to the
constructor of the specified class.
- Returns:
- A reference to a new, initialized object.
Obviously, the caller is responsible for casting the
returned object to the appropriate type.
- Throws:
- java.rmi.RemoteException - On any error.
getTracer
public java.lang.Object getTracer()
throws java.rmi.RemoteException
- Retrieve the tracer object for this object factory.
- Specified by:
- getTracer in interface AblePlatform
- Returns:
- A reference to this object factory's tracer object.
- Throws:
- java.rmi.RemoteException - On any error.
isTraceActive
public boolean isTraceActive()
- Determine whether tracing is on.
- Returns:
- true if tracing is on; false
otherwise.
main
public static void main(java.lang.String[] theArgs)
- Create an ABLE platform object factory and register it with
RMI. The factory will sit and listen for incoming requests to
create ABLE platform objects.
- Parameters:
theArgs
- Arguments to the program.
Copyright
public static java.lang.String Copyright()
- Determine the copyright of this class.
- Returns:
- A String containing this class's copyright statement.
ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'