Interface ServiceExtension

  • All Known Implementing Classes:
    FactoryBeanExtension

    public interface ServiceExtension
    Allows you to extend generated service proxy class with custom bytecode. For example, make it implement interface or dynamically add some methods.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> net.bytebuddy.dynamic.DynamicType.Builder<T> interceptProxy​(net.bytebuddy.dynamic.DynamicType.Builder<T> builder, java.lang.Class<T> type)
      Interceptor of the proxy generation.
    • Method Detail

      • interceptProxy

        <T> net.bytebuddy.dynamic.DynamicType.Builder<T> interceptProxy​(net.bytebuddy.dynamic.DynamicType.Builder<T> builder,
                                                                        java.lang.Class<T> type)
        Interceptor of the proxy generation.
        Type Parameters:
        T - erasure type of the service
        Parameters:
        builder - ByteBuddy immutable builder
        type - the provided class of the service
        Returns:
        extended ByteBuddy builder