Class: Copland::InterceptorChainBuilder::InterceptedServiceProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/copland/interceptor-chain.rb

Overview

This is just a trivial proxy class that is used to wrap a service before the interceptors are applied to it. This additional level of abstractions prevents the need for mangling the names of the service’s methods, and also offers those applications that need it the ability to invoke methods of the service without going through the interceptors.

The proxy will be decorated with dynamically appended methods by the InterceptorChainBuilder#build method.

Instance Method Summary collapse

Constructor Details

#initialize(chain) ⇒ InterceptedServiceProxy

Create a new InterceptedServiceProxy that wraps the given interceptor chain.



107
108
109
# File 'lib/copland/interceptor-chain.rb', line 107

def initialize( chain )
  @chain = chain
end