Package org.opentcs.access.rmi.factories
Class NullSocketFactoryProvider
java.lang.Object
org.opentcs.access.rmi.factories.NullSocketFactoryProvider
- All Implemented Interfaces:
SocketFactoryProvider
public class NullSocketFactoryProvider extends java.lang.Object implements SocketFactoryProvider
Provides
null
for both client and server socket factories.
By using this provider, the default client-side/server-side socket factory will be used in
Registry
stubs.-
Constructor Summary
Constructors Constructor Description NullSocketFactoryProvider()
-
Method Summary
Modifier and Type Method Description java.rmi.server.RMIClientSocketFactory
getClientSocketFactory()
Returns aRMIClientSocketFactory
.java.rmi.server.RMIServerSocketFactory
getServerSocketFactory()
Returns aRMIServerSocketFactory
.
-
Constructor Details
-
NullSocketFactoryProvider
@Inject public NullSocketFactoryProvider()
-
-
Method Details
-
getClientSocketFactory
public java.rmi.server.RMIClientSocketFactory getClientSocketFactory()Description copied from interface:SocketFactoryProvider
Returns aRMIClientSocketFactory
.- Specified by:
getClientSocketFactory
in interfaceSocketFactoryProvider
- Returns:
- A
RMIClientSocketFactory
. May benull
to indicate that a default factory implementation is to be used.
-
getServerSocketFactory
public java.rmi.server.RMIServerSocketFactory getServerSocketFactory()Description copied from interface:SocketFactoryProvider
Returns aRMIServerSocketFactory
.- Specified by:
getServerSocketFactory
in interfaceSocketFactoryProvider
- Returns:
- A
RMIServerSocketFactory
. May benull
to indicate that a default factory implementation is to be used.
-