1.1.15 • Published 6 years ago
springjs v1.1.15
This project is to achieve similar functionality as SpringFramework for Java
Project Status
SpringJS-core available
Roadmap
1.0.0
- Beans
- Simple AOP
1.1.0
- Remoting
Installation:
npm install springjs
Usage
var springjs = require("springjs");
var ctx = new springjs.FileSystemJsonApplicationContext("path to ApplicationContext.json");
var myapp = ctx.getBean("MyBean2");
myapp.doSomething();
// see the test cases for more examples
ApplicationContext.json
{
"application": {
"id": "myapp",
"version": "",
"import": ["beans/*"], // accepts plain string "beans/*"
"beans": {
"MyBean": {
"path": "./beans/MyCustomBean"
},
"MyBean2": {
"path": "./beans/MyCustomBean2",
"constuctor": "MyStaticConstructor",
"constuctor_arg": ["ref:MyBean"] // accepts plain string "ref:MyBean"
}
},
"aop": {
"aspect": [
{
"ref": "MyBean2"
"pointcut": {
"id": "log",
"expression": "execution(* *.embarkOnQuest(..))",
},
"before": {
"pointcut-ref": "log"
},
"after": {
"pointcut-ref": "log"
}
}
]
},
"modules": {
}
}
}
1.1.15
6 years ago
1.1.14
6 years ago
1.1.13
7 years ago
1.1.12
7 years ago
1.1.11
7 years ago
1.1.10
7 years ago
1.1.9
7 years ago
1.1.8
7 years ago
1.1.7
7 years ago
1.1.6
7 years ago
1.1.5
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago