1 个仓库
Wrapping class methods with external functions to add auxiliary logic.
Distinct from Method Wrapping Customization: General JavaScript method wrapping for logic augmentation, distinct from the Java-to-JS engine interface customization of the sibling.
Explore 1 awesome GitHub repository matching programming languages & runtimes · Method Wrapping. Refine with filters or upvote what's useful.
core-decorators 是一个 JavaScript 类装饰器库和框架实用程序,用于扩展类功能。它提供了一系列工具,用于实现类行为混入 (mixins)、自动绑定方法以避免手动构造函数配置,以及验证子类方法是否正确覆盖父类方法。 该库包括一个代码弃用工具包,用于通过控制台警告标记过时的方法,以及一个用于测量性能和持续时间的函数执行分析器。它进一步通过自定义装饰器和共享逻辑注入系统,实现了对类和方法行为的修改。 其他功能涵盖对象属性控制,包括强制执行只读属性和限制属性可见性。该工具包还提供性能原语,例如结果缓存和延迟属性初始化,以将执行推迟到首次访问时。
Applies external functions and arguments to a method to wrap it with custom logic.