Package org.kie.api.internal.utils
Class ServiceRegistry.Impl
- java.lang.Object
-
- org.kie.api.internal.utils.ServiceRegistry.Impl
-
- All Implemented Interfaces:
ServiceRegistry
,Service
- Enclosing interface:
- ServiceRegistry
public static class ServiceRegistry.Impl extends Object implements ServiceRegistry
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.kie.api.internal.utils.ServiceRegistry
ServiceRegistry.Impl, ServiceRegistry.ServiceRegistryHolder
-
-
Constructor Summary
Constructors Constructor Description Impl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(Class<T> cls)
<T> List<T>
getAll(Class<T> cls)
static ServiceRegistry
getServiceRegistry()
void
reload()
void
reset()
static void
setSupplier(Supplier<ServiceRegistry> supplier)
-
-
-
Method Detail
-
reset
public void reset()
-
reload
public void reload()
-
get
public <T> T get(Class<T> cls)
- Specified by:
get
in interfaceServiceRegistry
-
getAll
public <T> List<T> getAll(Class<T> cls)
- Specified by:
getAll
in interfaceServiceRegistry
-
getServiceRegistry
public static ServiceRegistry getServiceRegistry()
-
setSupplier
public static void setSupplier(Supplier<ServiceRegistry> supplier)
-
-