java - How to add filter / AOP method that cannot be removed without recompile? -
my question be: how add servlet filter, or spring aop method (or third solution - name it) cannot removed web application without recompiling?
i'd solve license handling way, if modifies web.xml or spring config, protection gone.
licence handling cross-cutting concern (and imo should) modelled means of aop.
- i cannot servlet filters, being unexperienced in regard,
- i know spring aop proxy-based, i.e. not modify source code directly, not want.
- aspectj, on other hand, when used @ compile-time (not via load-time weaving usual approach in spring), compile aspect code right core class files, "baking" them byte code. want. not cannot reverse-engineered - there option - code not run without aspectj runtime on classpath , not remove licencing aspects without recompilation. option recomment purpose.
interesting question, way.
Comments
Post a Comment