NAME

Root - the root of all persistent components


SYNOPSIS

  new Podius::Component::Root(
    new Parse::PerlConf("config.txt"),
    ['Edition', [1]]
  )

Should be usually passed to the component cache constructor.


DESCRIPTION

The only non-persistent component in the component cache.


REQUIREMENTS

the Exception manpage, the Podius::Component manpage, the Podius::Property::ComponentCollection manpage, the Parse::PerlConf manpage.


CONSTRUCTORS

new

description
Class constructor. Used before component deserialization.

parameters
Class name like any constructor.

Optionally configuration object and array ref for initialization of the main components property in form: [ type, [ id ]+ ].

returns
New formed root component reference.


METHODS

get_cfg_constant

description

Any component can ask for constants, defined in configuration of the root
of the component tree. Throws error, unless defined root for this component.
parameters
Scalar - constant name.

returns
Scalar - value of the constant.