Interface IServer<S extends IServer<S>>
- Type Parameters:
S- is the type of aIServer.
- All Superinterfaces:
AutoCloseable, Clearable, Closeable, CloseStateRequestable, EmptinessRequestable, GroupCloseable, IApplicationManager<IApplication<?,?>>, ISecuriyModeHolder
- All Known Implementing Classes:
AbstractServer, LocalServer, Server, SslServer
public interface IServer<S extends IServer<S>>
extends Clearable, GroupCloseable, IApplicationManager<IApplication<?,?>>, ISecuriyModeHolder
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionaddApplication(IApplication<?, ?> application) Adds the given application to the currentIServer.asTarget()voidremoveApplicationWithInstanceName(String instanceName) Removes theIApplicationwith the given instanceName from the currentIServer.Methods inherited from interface CloseStateRequestable
isOpenMethods inherited from interface EmptinessRequestable
containsAny, isEmptyMethods inherited from interface GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosed, noteCloseMethods inherited from interface IApplicationManager
getStoredApplicationsMethods inherited from interface ISecuriyModeHolder
getSecurityMode
-
Method Details
-
addApplication
Adds the given application to the currentIServer.- Parameters:
application-- Returns:
- the current
IServer. - Throws:
RuntimeException- if the given application is null.RuntimeException- if the currentIServercontains already aIApplicationwith the same instanceName as the given application.
-
asTarget
IServerTarget asTarget()- Returns:
- a target representation of the current
IServer.
-
removeApplicationWithInstanceName
Removes theIApplicationwith the given instanceName from the currentIServer.- Parameters:
instanceName-- Throws:
RuntimeException- if the currentIServerdoes not contain aIApplicationwith the given instanceName.
-