edjafarov / aries

AriesNode is a MVC framework for node.
aries.no.de
10 stars 0 forks source link

Create Session management using annotations #14

Open edjafarov opened 13 years ago

edjafarov commented 13 years ago

This feature should allow us to share any property of any classes (controllers, models, filters, interceptors) through session.

this will look like:


function className(){
/* constructor implementation */
}

/**
* @Resource(scope="session", key="propertyName")
*/
className.prototype.prepertyName;

So any read and write of the property will read and write value in session. Key is optional (to be able to override method name). scope could have values: request | session | app

edjafarov commented 13 years ago

obviously jsSourceCodeParser should be updated for this. It should be able to change the code.

edjafarov commented 13 years ago

Milestone will be moved for sake of ClassLoader refactoring.

It will be refactored and merged with jsSourceCodeParser. So classLoader will be able load, change(augument) and run classes.