public class MainRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
org.eclipse.papyrus.infra.core.services.ServicesRegistry |
servicesRegistry
The services registry.
|
Constructor and Description |
---|
MainRegistry(org.eclipse.papyrus.infra.core.services.ServicesRegistry serviceRegistry)
Instantiates a new main registry.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Class<?> key,
java.lang.Object serviceInstance)
Adds the.
|
<S> S |
getService(java.lang.Class<S> key)
Gets the service.
|
public org.eclipse.papyrus.infra.core.services.ServicesRegistry servicesRegistry
public MainRegistry(org.eclipse.papyrus.infra.core.services.ServicesRegistry serviceRegistry)
serviceRegistry
- the service registrypublic void add(java.lang.Class<?> key, java.lang.Object serviceInstance)
key
- the keyserviceInstance
- the service instancepublic <S> S getService(java.lang.Class<S> key)
S
- the generic typekey
- the key