S
- provided service typepublic interface IMetamodelServiceProvider<S>
Implementations of this interfaces must be registered with MetamodelExtensionPoint.registerExtension(Object, Class)
Modifier and Type | Method and Description |
---|---|
S |
findService(MClass cls)
Find a service for the given metaclass.
|
S |
getService(MMetamodelFragment metamodelFragment)
Get the service for a metamodel fragment.
|
S getService(MMetamodelFragment metamodelFragment)
metamodelFragment
- a metamodel fragment.S findService(MClass cls)
Look for a service for the metaclass origin metamodel fragment. If none is found lookup in the metaclass parent hierarchy for metaclasses from other metamodel fragments.
Will return null if no matching service provider was found.
cls
- a metaclass