TxMountPointRegistry

A singleton class repository keep mapping of mountpoint's name or symbol --> mountpoint object instance. The registry is use to create to create a new mountpoint object and store it's reference in the repository.

usages

  • Create new mountpoint object and save is in the registory for later access it by other objects.

// create a new mountpoint object with a given name 'GITHUB:G1'
mountpoint = TxMountPointRegistry.instance.create('GITHUB::G1');
  • Add an existing mountpoint by it's name | sybmol.

// add a mountpoint object with the name 'GITHUB:G1' into the registry
let mountpoint = new TxMountPoint('GITHUB::G1');
TxMountPointRegistry.instance.add(mountpoint.name, mountpoint);
  • Get an existing mountpoint by it's name | sybmol.

// create a new mountpoint object with a given name 'GITHUB:G1'
mountpoint = TxMountPointRegistry.instance.get('GITHUB::G1');

Last updated