Class Needle::Pipeline::InterceptorElement
In: lib/needle/pipeline/interceptor.rb
Parent: Element

The pipeline element that implements adding interceptors to a service.

Methods

Attributes

interceptors  [R]  The array of interceptors to be proxied onto the object.

Public Instance methods

Invokes the next element in the chain and adds the interceptors to the result, returning a proxy object wrapped by the interceptors.

[Source]

    # File lib/needle/pipeline/interceptor.rb, line 38
38:       def call( container, point, *args )
39:         service = succ.call( container, point, *args )
40:         InterceptorChainBuilder.build( point, service, @interceptors )
41:       end

Initializes the array of interceptors. It is initially empty.

[Source]

    # File lib/needle/pipeline/interceptor.rb, line 32
32:       def initialize_element
33:         @interceptors = []
34:       end

[Validate]