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
Resource s (the slot's contents might be a Resource or an Iterable of Resources). |
protected GeneratorDelegate |
getCompiler() |
protected IFileSystemAccess2 |
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)
Resource
s (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.IWorkflowComponent
public 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.IWorkflowComponent
protected GeneratorDelegate getCompiler()
protected IFileSystemAccess2 getConfiguredFileSystemAccess()
public void postInvoke()
postInvoke
in interface org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
protected java.util.Map<java.lang.String,OutputConfiguration> getOutputConfigurations()