18 Oct 2021 17:22:41 UTC
- Distribution: Tangence
- Module version: 0.27
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (3)
- Testers (123 / 0 / 34)
- KwaliteeBus factor: 1
- 87.88% Coverage
- License: perl_5
- Perl: v5.26.0
- Activity24 month
- Download (77.51KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Tangence::Registry- object manager for a
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.
$registry = Tangence::Registry->new
Returns a new instance of a
Tangence::Registryobject. An entire server requires one registry object; it will be shared among all the client connections to that server.
$obj = $registry->get_by_id( $id )
Returns the object with the given object ID.
This method is exposed to clients.
$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.
$registry->load_tanfile( $tanfile )
Loads additional Tangence class and struct definitions from the given .tan file.
Paul Evans <email@example.com>