Class ServerWrapperTest.TestWrapper
java.lang.Object
de.iip_ecosphere.platform.services.ServerWrapper
test.de.iip_ecosphere.platform.services.ServerWrapperTest.TestWrapper
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.Server
- Enclosing class:
ServerWrapperTest
private static class ServerWrapperTest.TestWrapper
extends de.iip_ecosphere.platform.services.ServerWrapper
A server wrapper that allows defining whether a thread is required without defining a respective
server class.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTestWrapper(de.iip_ecosphere.platform.support.Server server, boolean requiresThread) Creates a server wrapper. -
Method Summary
Methods inherited from class de.iip_ecosphere.platform.services.ServerWrapper
start, stop
-
Field Details
-
requiresThread
private boolean requiresThread
-
-
Constructor Details
-
TestWrapper
public TestWrapper(de.iip_ecosphere.platform.support.Server server, boolean requiresThread) Creates a server wrapper.- Parameters:
server- the server instancerequiresThread- whether a thread shall be assumed to be created
-
-
Method Details
-
requiresThread
protected boolean requiresThread()- Overrides:
requiresThreadin classde.iip_ecosphere.platform.services.ServerWrapper
-