saskodh / framework

Lightweight web framework for NodeJS inspired by Spring framework
26 stars 5 forks source link

Printing the correct class name #54

Open damjangelovski opened 8 years ago

damjangelovski commented 8 years ago

AOP proxies the class with an extended class (say TimedProxy) and when we call CompConstructor.name we get "TimedProxy". In order to get the name of the original class it is best to call ComponentUtil.getComponentData(componentDefinition).componentName. This should be checked and changed in the whole code.

P.S. The error messages on decorator (and some other) errors dont need to do this as they are done before the post-processing