public class GeneratorComponent
extends java.lang.Object
implements org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
GeneratorComponent.Outlet  | 
| Constructor and Description | 
|---|
GeneratorComponent()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addOutlet(GeneratorComponent.Outlet out)
an outlet is defined by a name and a path. 
 | 
void | 
addSlot(java.lang.String slot)
adds a slot name to look for  
Resources (the slot's contents might be a Resource or an Iterable of Resources). | 
protected IGenerator | 
getCompiler()  | 
protected IFileSystemAccess | 
getConfiguredFileSystemAccess()  | 
protected java.util.Map<java.lang.String,java.lang.String> | 
getOutlets()  | 
protected java.util.Map<java.lang.String,OutputConfiguration> | 
getOutputConfigurations()  | 
protected java.util.List<java.lang.String> | 
getSlotNames()  | 
void | 
invoke(org.eclipse.emf.mwe2.runtime.workflow.IWorkflowContext ctx)  | 
void | 
postInvoke()  | 
void | 
preInvoke()  | 
void | 
setInjector(com.google.inject.Injector injector)
sets the  
Injector to be used to obtain the used IGenerator instance. | 
void | 
setRegister(ISetup setup)
registering an  
ISetup, which causes the execution of ISetup.createInjectorAndDoEMFRegistration()
 the resulting Inject is stored and used to obtain the used IGenerator. | 
protected java.util.List<java.lang.String> getSlotNames()
protected java.util.Map<java.lang.String,java.lang.String> getOutlets()
public void setRegister(ISetup setup)
ISetup, which causes the execution of ISetup.createInjectorAndDoEMFRegistration()
 the resulting Inject is stored and used to obtain the used IGenerator.public void setInjector(com.google.inject.Injector injector)
Injector to be used to obtain the used IGenerator instance.public void addSlot(java.lang.String slot)
Resources (the slot's contents might be a Resource or an Iterable of Resources).public void preInvoke()
preInvoke in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponentpublic void addOutlet(GeneratorComponent.Outlet out)
public void invoke(org.eclipse.emf.mwe2.runtime.workflow.IWorkflowContext ctx)
invoke in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponentprotected IGenerator getCompiler()
protected IFileSystemAccess getConfiguredFileSystemAccess()
public void postInvoke()
postInvoke in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponentprotected java.util.Map<java.lang.String,OutputConfiguration> getOutputConfigurations()