Package org.opentcs.access.rmi.factories
Interface SocketFactoryProvider
- All Known Implementing Classes:
NullSocketFactoryProvider
,SecureSocketFactoryProvider
public interface SocketFactoryProvider
A provider for instances of
RMIClientSocketFactory
and RMIServerSocketFactory
.
Generally one provider should provide compatible factories for clients and servers.-
Method Summary
Modifier and Type Method Description java.rmi.server.RMIClientSocketFactory
getClientSocketFactory()
Returns aRMIClientSocketFactory
.java.rmi.server.RMIServerSocketFactory
getServerSocketFactory()
Returns aRMIServerSocketFactory
.
-
Method Details
-
getClientSocketFactory
@Nullable java.rmi.server.RMIClientSocketFactory getClientSocketFactory()Returns aRMIClientSocketFactory
.- Returns:
- A
RMIClientSocketFactory
. May benull
to indicate that a default factory implementation is to be used.
-
getServerSocketFactory
@Nullable java.rmi.server.RMIServerSocketFactory getServerSocketFactory()Returns aRMIServerSocketFactory
.- Returns:
- A
RMIServerSocketFactory
. May benull
to indicate that a default factory implementation is to be used.
-