|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Emitter
An emitter is anything that emits code or data files.
When the emit method is
called by the framework, it is passed a context containing properties needed to generate an artifact.
The emitter will typically bind the context to an associated template.
The artifact property contains the location and name of the resulting
generated file. Artifacts are typically passed the same context handed to the template
which allows the file name and path to be determined by the same properties that the
template uses.
An emitter can also hold its own local context which can be used to customize it's behavior.
| Method Summary | |
|---|---|
void |
emit(Context context)
invoke an emitter |
Artifact |
getArtifact()
The unique artifact instance that provides the file name and path to this emitter. |
| Methods inherited from interface org.javagen.agile.core.context.ContextHolder |
|---|
getContext |
| Method Detail |
|---|
void emit(Context context)
context - - usually a composite of leaf, parent and template contexts.Artifact getArtifact()
WARNING: Artifact instances should not be shared between different emitters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||