edjafarov/aries

Create Session management using annotations

Opened this issue · 2 comments

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

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

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.