Package 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 Description static class
ServiceRegistry.Impl
static class
ServiceRegistry.ServiceRegistryHolder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method 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)
-
isSupported
static boolean isSupported(Class<?> clazz)
-
-