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 auxiliary 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 TypeMethodDescriptionCreates an auxiliary server connected to the given parent server.static <C extends Remote, A extends ServerAdmin, T extends AuxiliaryServer>
AuxiliaryServerFactory<C, A, T> Returns theAuxiliaryServerFactoryimplementation found by theServiceLoaderof the given type.
-
Method Details
-
create
-
instance
static <C extends Remote, A extends ServerAdmin, T extends AuxiliaryServer> AuxiliaryServerFactory<C,A, instanceT> (String classname) Returns theAuxiliaryServerFactoryimplementation found by theServiceLoaderof 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
AuxiliaryServerFactoryimplementation of the given type from theServiceLoader. - Throws:
IllegalStateException- in case no suchAuxiliaryServerFactoryimplementation is available.
-