Skip to content
Browse files

fixed example, added READMEs

  • Loading branch information...
1 parent 3a959e5 commit d89c9d4fdd228053ffc78f51c88a34cd365850ae @warmuuh committed
Showing with 23 additions and 2 deletions.
  1. +7 −1 README.md
  2. +5 −0 browser-example/README.md
  3. +1 −1 browser-example/index.html
  4. +5 −0 node-example/README.md
  5. +5 −0 yaap/README.md
View
8 README.md
@@ -2,4 +2,10 @@
Yaap is a generic annotation processor for javascript. It can be used to implement cross-cutting concerns and inject additional aspect oriented code.
-See [Readme](yaap/README.md) for more information.
+See [Readme](yaap/README.md) for more information.
+
+
+There are also two examples for server and client scenario:
+
+* On [Node](node-example)
+* In [Browser](browser-example)
View
5 browser-example/README.md
@@ -0,0 +1,5 @@
+#Yaap in a browser
+
+The Example uses cujo.js to annotate and autowire a class.
+
+use `bower install` to install dependencies
View
2 browser-example/index.html
@@ -11,7 +11,7 @@
packages: {
wire: { path: 'components/wire', main: 'wire'},
when: { path: 'components/when/', main: 'when'},
- yaap: { path: '../yaap/', main: 'yaap'},
+ yaap: { path: 'components/yaap/yaap', main: 'yaap'},
meld: { path: 'components/meld', main: 'meld' },
underscore:{ path: 'components/underscore', main: 'underscore',
config: {moduleLoader: 'curl/loader/cjsm11'}
View
5 node-example/README.md
@@ -0,0 +1,5 @@
+#Yaap in node
+
+The Example uses cujo.js to annotate and autowire a class.
+
+use `npm install` to install dependencies
View
5 yaap/README.md
@@ -106,3 +106,8 @@ module.exports = {
`Remark:` Yaap/wire uses the parameter name to autowire. You can also supply a reference name with `/*@Autowire("level")*/`
`Remark:` You can also annotate the whole function with `@Autowire` so every parameter will be autowired by name.
+
+###Constructors
+The yaap/wire plugin will be called after the bean was initialized. That means, the constructor itself will not be affected by annotations.
+
+As a workaround, use a separate initialize-method (using the [init-facade](https://github.com/cujojs/wire/blob/master/docs/configure.md#init-methods) of wire).

0 comments on commit d89c9d4

Please sign in to comment.
Something went wrong with that request. Please try again.