Reaction::InterfaceModel::Object(3)

NAME
Reaction::InterfaceModel::Object

SYNOPSIS

DESCRIPTION
InterfaceModel Object base class.

Attributes

  _action_class_map
RW, isa HashRef - Returns an empty hashref by default. It will hold a series of actions as keys with their corresponding action classes as values.

  _default_action_class_prefix
RO, isa Str - Default action class prefix. Lazy build by default to the value returned by "_build_default_action_class_prefix" which is "ref $self || $self".

Methods

  parameter_attributes

  domain_models
Shortcuts for these same subs in meta. They will return attribute objects that are of the correct type, Reaction::Meta::InterfaceModel::Object::ParameterAttribute and Reaction::Meta::InterfaceModel::Object::DomainModelAttribute

  _default_action_class_for $action
Provides the default package name for the $action action-class. It defaults to the value of "_default_action_class_prefix" followed by "::Action::$action"

   #for MyApp::Foo, returns MyApp::Foo::Action::Create
   $obj->_default_action_class_for('Create');

  _action_class_for $action
Return the action class for an action name. Will search "_action_class_map" or, if not found, use the value of "_default_action_class_for"

  action_for $action, %args
Will return a new instance of $action. If specified,
 %args will be passed through to "new" as is.

  _default_action_args_for
By default will return an empty hashref

  _override_action_args_for
Returns empty hashref by default.

SEE ALSO
Reaction::InterfaceModel::ObjectClass

AUTHORS
See Reaction::Class for authors.

LICENSE
See Reaction::Class for the license.