Interface ServiceDecorator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object createInterceptor​(java.lang.Object delegate)
      Creates a new interceptor object implementing the same service interface as the delegate object.
    • Method Detail

      • createInterceptor

        java.lang.Object createInterceptor​(java.lang.Object delegate)
        Creates a new interceptor object implementing the same service interface as the delegate object.
        Parameters:
        delegate - an existing object implementing the service interface.
        Returns:
        a new object implementing the same service interface, or delegate or null if the decorator chooses not to create a new interceptor.