Tangence::Registry(3pm)

Tangence::Registry3pm

Object manager for a "tangence" server

Overview

This subclass of Tangence::Object acts as a container for all the exposed objects in a Tangence server. The registry is used to create exposed objects, and manages their lifetime. It maintains a reference to all the objects it creates, so it can dispatch incoming messages from clients to them.

Constructor

new

   $registry = Tangence::Registry->new;

Returns a new instance of a "Tangence::Registry" object. An entire server requires one registry object; it will be shared among all the client connections to that server.

Methods

get_by_id

   $obj = $registry->get_by_id( $id );

Returns the object with the given object ID.

This method is exposed to clients.

construct

   $obj = $registry->construct( $type, @args );

Constructs a new exposed object of the given type, and returns it. Any additional arguments are passed to the object's constructor.

load_tanfile

   $registry->load_tanfile( $tanfile );

Loads additional Tangence class and struct definitions from the given .tan file.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

Paul Evans <[email protected]>

From libtangence-perl 0.33-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.