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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -