Class CGLibAdvice

java.lang.Object
info.ejava.examples.svc.aop.items.CGLibAdvice
All Implemented Interfaces:
org.springframework.boot.CommandLineRunner

@Component public class CGLibAdvice extends Object implements org.springframework.boot.CommandLineRunner
This example creates a CGLIB proxy for a class and an optional target object. CGLIB can be used in cases when there is no interface and the proxied object can either be the base class or a delegate.
  • Constructor Details

    • CGLibAdvice

      public CGLibAdvice()
  • Method Details

    • run

      public void run(String... args) throws Exception
      Specified by:
      run in interface org.springframework.boot.CommandLineRunner
      Throws:
      Exception