Package org.drools.wiring.statics
Class StaticServiceRegistry
- java.lang.Object
-
- org.drools.wiring.statics.StaticServiceRegistry
-
- All Implemented Interfaces:
org.kie.api.internal.utils.ServiceRegistry,org.kie.api.Service
public class StaticServiceRegistry extends Object implements org.kie.api.internal.utils.ServiceRegistry
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStaticServiceRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tget(Class<T> cls)<T> List<T>getAll(Class<T> cls)<T> TnewInstance(String name)protected voidregisterService(String service, String implementation, boolean mandatory)protected voidwireServices()
-
-
-
Method Detail
-
wireServices
protected void wireServices()
-
registerService
protected void registerService(String service, String implementation, boolean mandatory)
-
get
public <T> T get(Class<T> cls)
- Specified by:
getin interfaceorg.kie.api.internal.utils.ServiceRegistry
-
getAll
public <T> List<T> getAll(Class<T> cls)
- Specified by:
getAllin interfaceorg.kie.api.internal.utils.ServiceRegistry
-
newInstance
public <T> T newInstance(String name)
-
-