Targeter.java 552 B

1234567891011121314151617181920212223
  1. package cn.nosum.support.config;
  2. import cn.nosum.support.proxy.InvocationHandlerFactory;
  3. import cn.nosum.support.proxy.Target;
  4. /**
  5. * The proxy class creates the wrapper.
  6. *
  7. * @author Young
  8. */
  9. interface Targeter {
  10. /**
  11. * Create proxy class
  12. *
  13. * @param factory bean factory
  14. * @param handlerFactory proxy factory
  15. * @param target target object information
  16. * @return proxy instance
  17. */
  18. <T> T target(DynamicClientFactoryBean factory, InvocationHandlerFactory handlerFactory, Target<T> target);
  19. }