Class: Copland::Implementation::LoggingInterceptorFactory

Inherits:
Object
  • Object
show all
Includes:
IncludeExcludeFactory
Defined in:
lib/copland/impl/logging-interceptor.rb

Overview

This is the implementation of the service factory that provides instances of logging interceptors. It includes the IncludeExcludeFactory functionality.

Constant Summary

Constants included from IncludeExcludeFactory

IncludeExcludeFactory::PATTERN

Instance Method Summary collapse

Methods included from IncludeExcludeFactory

#build_map

Instance Method Details

#create_instance(point, parms) ⇒ Object

Returns a new LoggingInterceptor instance, initialized with the given parameters.



47
48
49
50
51
52
# File 'lib/copland/impl/logging-interceptor.rb', line 47

def create_instance( point, parms )
  includes = build_map( parms[ "include" ] )
  excludes = build_map( parms[ "exclude" ] )

  return LoggingInterceptor.new( point, includes, excludes )
end