org.eclipse.xtext.resource.generic
Class AbstractGenericResourceSupport

java.lang.Object
  extended by org.eclipse.xtext.resource.generic.AbstractGenericResourceSupport
All Implemented Interfaces:
org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
Direct Known Subclasses:
EcoreSupport

public abstract class AbstractGenericResourceSupport
extends java.lang.Object
implements org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent

This class is intended to be used in an MWE workflow. It instantiates and registers Xtext support for a non-Xtext based EMF resources, e.g. to reference model elements from any Xtext language.

Author:
Sven Efftinge - Initial contribution and API, Jan Koehnlein

Constructor Summary
AbstractGenericResourceSupport()
           
 
Method Summary
protected abstract  com.google.inject.Module createGuiceModule()
           
protected  com.google.inject.Module getGuiceModule()
           
 void invoke(org.eclipse.emf.mwe2.runtime.workflow.IWorkflowContext ctx)
           
 void postInvoke()
           
 void preInvoke()
           
protected  void registerInRegistry()
          Deprecated. use registerInRegistry(boolean) instead.
protected  void registerInRegistry(boolean force)
           
 void registerServices(boolean force)
          Inject members into this instance and register the services afterwards.
 void setGuiceModule(com.google.inject.Module module)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGenericResourceSupport

public AbstractGenericResourceSupport()
Method Detail

preInvoke

public void preInvoke()
Specified by:
preInvoke in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent

registerServices

public void registerServices(boolean force)
Inject members into this instance and register the services afterwards.

Since:
2.1
See Also:
getGuiceModule(), registerInRegistry(boolean)

setGuiceModule

public void setGuiceModule(com.google.inject.Module module)

getGuiceModule

protected com.google.inject.Module getGuiceModule()

createGuiceModule

protected abstract com.google.inject.Module createGuiceModule()

registerInRegistry

@Deprecated
protected void registerInRegistry()
Deprecated. use registerInRegistry(boolean) instead.


registerInRegistry

protected void registerInRegistry(boolean force)
Parameters:
force - true if you want to override existing service providers.
Since:
2.1

invoke

public void invoke(org.eclipse.emf.mwe2.runtime.workflow.IWorkflowContext ctx)
Specified by:
invoke in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent

postInvoke

public void postInvoke()
Specified by:
postInvoke in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent