Package com.io7m.cedarbridge.cmdline.internal

# Class CBServices

java.lang.Object
com.io7m.cedarbridge.cmdline.internal.CBServices

public final class CBServices extends Object
Functions over services.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static CBVersion`
  `findApplicationVersion()`
  `static <T> T`
  `findService(Class<T> service)`
  Find a service, or fail.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### findService

    public static <T> T findService(Class<T> service)
    Find a service, or fail.
    Type Parameters:
      `T` - The type of service
    Parameters:
      `service` - The service class
    Returns:
      The service instance

  - ### findApplicationVersion

    public static CBVersion findApplicationVersion() throws IOException
    Returns:
      The application version
    Throws:
      `IOException` - On I/O errors