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
    Modifier and Type
    Field
    Description
    private boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    TestWrapper(de.iip_ecosphere.platform.support.Server server, boolean requiresThread)
    Creates a server wrapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     

    Methods inherited from class de.iip_ecosphere.platform.services.ServerWrapper

    start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 instance
      requiresThread - whether a thread shall be assumed to be created
  • Method Details

    • requiresThread

      protected boolean requiresThread()
      Overrides:
      requiresThread in class de.iip_ecosphere.platform.services.ServerWrapper