cglib的fastmethod

简单示例:

    FastClass serviceFastClass = FastClass.create(Person.class);

    Person p = new Person();

    p.setName("Tom");

    FastMethod serviceFastMethod = serviceFastClass.getMethod("display", new Class[]{String.class});

    Object returnValue = serviceFastMethod.invoke(p, new Object[]{"qazxsw"});

    System.out.println(returnValue);

java自带的反射调用

还有个:http://www.iteye.com/topic/1129340#

相关文章:

  • 2021-08-06
  • 2021-08-06
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-30
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2021-12-20
相关资源
相似解决方案