public interface RemoteFactoryProvider
RemoteFactory
implementations as standard Java
service. Implementation of this service should provide a remote factory instance able to handle URL protocol declared
by getProtocols()
. Protocol syntax is implementation detail but is part of implementationURL
supplied to RemoteFactory.getRemoteInstance(String, Class)
.
Being a Java service, implementation of this class should have a public default constructor and need to be declared
by distributed archive on META-INF/services/js.rmi.RemoteFactoryProvider
file.
Modifier and Type | Method and Description |
---|---|
String[] |
getProtocols()
Get URL protocols that
getRemoteFactory() is able to handle. |
RemoteFactory |
getRemoteFactory()
Get remote factory instance able to handle declared
getProtocols() . |
String[] getProtocols()
getRemoteFactory()
is able to handle.RemoteFactory getRemoteFactory()
getProtocols()
.Copyright © 2019. All rights reserved.