lib/core/definition_internal.rb
# internal runtime function for process call
# Get the object controller mapping method and method origin.
#
# If the object is fully managed by the process, ie no controller
# object is attached to it, the process will own the mapping method.
#
# *parameters*:
#   - +object_type+       : object_type to map
#
# *return*:
# - map_method    : return the parameter value.
# - method_name   : Name of the map method.
# - is_controller : true if the map method is owned by the controller
#                   false if the map method is owned by the process.
# - class owner   : Class owner of the map method.
#
# *raise*:
#
internal runtime function for process call
Get the object controller mapping method and method origin.

If the object is fully managed by the process, ie no controller
object is attached to it, the process will own the mapping method.



return*:
map_method    : return the parameter value.
method_name   : Name of the map method.
is_controller : true if the map method is owned by the controller
false if the map method is owned by the process.
class owner   : Class owner of the map method.

raise*.
internal runtime function for process call Get the object controller mapping method and method origin . If the object is fully managed by the process ie no controller object is attached to it the process will own the mapping method . return * : map_method : return the parameter value . method_name : Name of the map method . is_controller : true if the map method is owned by the controller false if the map method is owned by the process . class owner : Class owner of the map method . raise * .
def _map_identify_mapping_handler(object_type)
      proc_name = PrcLib.model.meta_obj.rh_get(object_type,
                                               :lambdas, :get_attr_e)
      is_controller = PrcLib.model.meta_obj.rh_get(object_type,
                                                   :options, :controller)
      return nil if !proc_name && !is_controller
      if proc_name
        map_handler = [@process.method(proc_name), proc_name, false]
        map_handler << @process.class
        return map_handler
      end
      [@controller.method(:get_attr), :get_attr, true, @controller.class]
    end
def _map_identify_mapping_handler ( object_type ) proc_name = PrcLib . model . meta_obj . rh_get ( object_type , :lambdas , :get_attr_e ) is_controller = PrcLib . model . meta_obj . rh_get ( object_type , :options , :controller ) return nil if ! proc_name && ! is_controller if proc_name map_handler = [ @process . method ( proc_name ) , proc_name , false ] map_handler << @process . class return map_handler end [ @controller . method ( :get_attr ) , :get_attr , true , @controller . class ] end
internal runtime function for process call
Get the object controller mapping method and method origin.
internal runtime function for process call Get the object controller mapping method and method origin .
object_type
<not_specific>