public class BasicRemoteFactory extends java.lang.Object implements RemoteFactory
| Constructor and Description |
|---|
BasicRemoteFactory(java.lang.Class<? extends Disposable> localImpl,
java.lang.Class<? extends java.rmi.Remote> remoteInterface,
boolean marshalOutputs)
Creates a new BasicRemoteFactory that produces remote proxy objects with
the given interface and implementation.
|
| Modifier and Type | Method and Description |
|---|---|
java.rmi.Remote |
getStub() |
java.rmi.Remote |
newInstance(java.lang.Object... initargs)
Create a new object on the remote server.
|
void |
shutdown() |
void |
shutdownNow() |
public BasicRemoteFactory(java.lang.Class<? extends Disposable> localImpl, java.lang.Class<? extends java.rmi.Remote> remoteInterface, boolean marshalOutputs)
localImpl - Class to use to implement the given remote interface.remoteInterface - The factory produces objects implementing this interface.marshalOutputs - If true, proxy objects created by this factory will automatically marshal any
MWArray-based method outputs to their corresponding Java types.public java.rmi.Remote getStub()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void shutdown()
public void shutdownNow()
public java.rmi.Remote newInstance(java.lang.Object... initargs)
throws java.rmi.RemoteException
RemoteFactorynewInstance in interface RemoteFactoryinitargs - Arguments to pass to the remote object constructorjava.rmi.RemoteException - if an error occurred© 1994-2008 The MathWorks, Inc. Terms of Use Patents Trademarks