org.eclipse.xtext.resource
Interface IGlobalServiceProvider

All Known Implementing Classes:
IGlobalServiceProvider.ResourceServiceProviderImpl

public interface IGlobalServiceProvider

Author:
Sven Efftinge - Initial contribution and API

Nested Class Summary
static class IGlobalServiceProvider.ResourceServiceProviderImpl
           
 
Method Summary
<T> T
findService(org.eclipse.emf.ecore.EObject eObject, java.lang.Class<T> serviceClazz)
           
<T> T
findService(org.eclipse.emf.common.util.URI uri, java.lang.Class<T> serviceClazz)
           
 

Method Detail

findService

<T> T findService(org.eclipse.emf.common.util.URI uri,
                  java.lang.Class<T> serviceClazz)
Returns:
an instance of the demanded service class for the given URI's language implementation, or null if no service or language implementation could be found.

findService

<T> T findService(org.eclipse.emf.ecore.EObject eObject,
                  java.lang.Class<T> serviceClazz)
Returns:
an instance of the demanded service class for the given EObject's language implementation, or null if no service or language implementation could be found.