Module is.codion.common.rmi
Package is.codion.common.rmi.server
Interface AuxiliaryServerFactory<C extends Remote,A extends ServerAdmin,T extends AuxiliaryServer>
- Type Parameters:
C
- the remote connection type provided by the parent serverA
- the admin connection type provided by the parent serverT
- the parent server type
- All Known Implementing Classes:
EntityServiceFactory
public interface AuxiliaryServerFactory<C extends Remote,A extends ServerAdmin,T extends AuxiliaryServer>
Provides a
AuxiliaryServer
implementation.-
Method Summary
Modifier and TypeMethodDescriptioncreateServer
(Server<C, A> server) Creates a server instance using the given configuration.static <C extends Remote,
A extends ServerAdmin, T extends AuxiliaryServer>
AuxiliaryServerFactory<C,A, T> Returns theAuxiliaryServerFactory
implementation found by theServiceLoader
of the given type.
-
Method Details
-
createServer
Creates a server instance using the given configuration.- Parameters:
server
- the parent server- Returns:
- a server
-
instance
static <C extends Remote,A extends ServerAdmin, AuxiliaryServerFactory<C,T extends AuxiliaryServer> A, instanceT> (String classname) Returns theAuxiliaryServerFactory
implementation found by theServiceLoader
of the given type.- Type Parameters:
C
- the remote connection type provided by the parent serverA
- the admin connection type provided by the parent serverT
- the auxiliary server type- Parameters:
classname
- the classname of the required auxiliary server factory- Returns:
- a
AuxiliaryServerFactory
implementation of the given type from theServiceLoader
. - Throws:
IllegalStateException
- in case no suchAuxiliaryServerFactory
implementation is available.
-