Skip to content

Commit

Permalink
[docs] Fix a typo in 302_configuration.md
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjnemeth committed Jul 17, 2015
1 parent 087e42a commit 54254fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xtext-website/documentation/302_configuration.md
Expand Up @@ -76,7 +76,7 @@ public class CreatePersons {

![](images/family_tree.png)

And this is how it works: The root element is a plain Java class name. As the module is a sibling to the class *com.mycompany.Person* it is not necessary to use use fully qualified name. There are other packages implicitly imported into this workflow as well to make it convenient to instantiate actual workflows and components, but these ones are covered in depth in the appropriate [chapter](306_mwe2.html). The constructed objects are furthermore configured according to the declaration in the module, e.g. a second instance of Person will be created and added to the list of children of "Grandpa" while the third person - the class is inferred from the assigned feature - becomes a child of "Father". All three instances will have their respective *name* assigned via a reflective invocation of the *setName* method. If one wants to add another child to "Father", she can simply repeat the child assignment:
And this is how it works: The root element is a plain Java class name. As the module is a sibling to the class *com.mycompany.Person* it is not necessary to use fully qualified name. There are other packages implicitly imported into this workflow as well to make it convenient to instantiate actual workflows and components, but these ones are covered in depth in the appropriate [chapter](306_mwe2.html). The constructed objects are furthermore configured according to the declaration in the module, e.g. a second instance of Person will be created and added to the list of children of "Grandpa" while the third person - the class is inferred from the assigned feature - becomes a child of "Father". All three instances will have their respective *name* assigned via a reflective invocation of the *setName* method. If one wants to add another child to "Father", she can simply repeat the child assignment:

```mwe2
child = com.mycompany.Person {
Expand Down Expand Up @@ -302,4 +302,4 @@ These are the basic ideas around Guice and the small extension Xtext provides on

---

**[Next Chapter: Runtime Concepts](303_runtime_concepts.html)**
**[Next Chapter: Runtime Concepts](303_runtime_concepts.html)**

0 comments on commit 54254fb

Please sign in to comment.