Class AutoStartableTestComponent

java.lang.Object
samplest.autostartable.AutoStartableTestComponent
All Implemented Interfaces:
AutoCloseable, AutoStartable

public class AutoStartableTestComponent extends Object implements AutoStartable, AutoCloseable
Date: 1/12/13 Time: 14:21
  • Constructor Details

    • AutoStartableTestComponent

      public AutoStartableTestComponent(@Named("restx.server.id") String serverId, @Named("restx.server.baseUrl") String baseUrl)
  • Method Details

    • getClosed

      public static int getClosed()
    • clear

      public static void clear()
    • getStarted

      public static int getStarted()
    • getInstanciated

      public static int getInstanciated()
    • getCalled

      public int getCalled()
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • start

      public void start()
      Specified by:
      start in interface AutoStartable
    • call

      public void call()
    • getServerId

      public String getServerId()
    • getBaseUrl

      public String getBaseUrl()
    • getRouter

      public com.google.common.base.Optional<RestxMainRouter> getRouter()