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()
           
 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

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

protected void registerInRegistry()

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