Interface DependencyContext

    • Method Detail

      • hekate

        Hekate hekate()
        Returns the Hekate instance that manages this service.

        Notice: the returned instance may be not fully initialized. The main purpose of this method is to provide a reference for the service back to its owning Hekate instance, so that it could be used during the further lifecycle phases.

        Returns:
        Hekate instance that manages this service.
      • optional

        <T extends Service> T optional​(Class<T> service)
        Returns a reference to an optional service. If there is no such service then this method returns null.
        Type Parameters:
        T - Service type.
        Parameters:
        service - Service type.
        Returns:
        Service or null if the is no such service.
      • metrics

        io.micrometer.core.instrument.MeterRegistry metrics()
        Returns metrics registry.
        Returns:
        Metrics registry.