The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Object::Registry

ABSTRACT

Data-Object Namespace Registry

SYNOPSIS

  use Data::Object::Registry;

  my $registry = Data::Object::Registry->new;

DESCRIPTION

Data::Object::Registry is a singleton that holds mappings for namespaces and type libraries.

METHODS

This package implements the following methods.

def

  my $def = $registry->def();

Returns the default type library.

get

  my $get = $registry->get($key);

The get method returns the value of the element with the specific key.

lut

  my $lut = $registry->lut($key);

Returns the lookup table for a given namespace.

obj

  my $obj = $registry->obj($key);

Return the Type::Registry object for a given namespace.

rem

  my $rem = $registry->rem($key, $val);

Remove the registered type library from a given namespace.

set

  my $set = $registry->set($key, $val);

Set the supplied key and value, and return the value.

tns

  my $tns = $registry->tns();

Returns the registered type-namespaces.