Package org.opentcs.access.rmi.factories
Class NullSocketFactoryProvider
java.lang.Object
org.opentcs.access.rmi.factories.NullSocketFactoryProvider
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionReturns aRMIClientSocketFactory
.Returns aRMIServerSocketFactory
.
-
Constructor Details
-
NullSocketFactoryProvider
@Inject public NullSocketFactoryProvider()
-
-
Method Details
-
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
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.
-