org.kie.api.internal.utils

## Interface ServiceRegistry

- All Superinterfaces:
    Service
  All Known Implementing Classes:
    ServiceRegistry.Impl

      public interface ServiceRegistry
      extends Service

  Internal Interface

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `ServiceRegistry.Impl`
    `static class` | `ServiceRegistry.ServiceRegistryHolder`

  - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> T` | `get(Class<T> cls)`
    `<T> List<T>` | `getAll(Class<T> cls)`
    `static ServiceRegistry` | `getInstance()`
    `static <T> T` | `getService(Class<T> cls)`
    `static <R,A> Optional<R>` | `ifSupported(Class<A> clazz, Function<A,R> executed)`
    `static boolean` | `isSupported(Class<?> clazz)`

- - ### Method Detail

    - #### getService

          static <T> T getService(Class<T> cls)

    - #### getInstance

          static ServiceRegistry getInstance()

    - #### get

          <T> T get(Class<T> cls)

    - #### getAll

          <T> List<T> getAll(Class<T> cls)

    - #### isSupported

          static boolean isSupported(Class<?> clazz)

    - #### ifSupported

          static <R,A> Optional<R> ifSupported(Class<A> clazz,
                                               Function<A,R> executed)

Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.