From: Christian Femers Date: Thu, 26 Sep 2019 04:50:17 +0000 (+0200) Subject: Added comment on MachineRegistry X-Git-Url: https://mograsim.net/gitweb/?p=Mograsim.git;a=commitdiff_plain;h=5f6d9ccbb5b56a59d5171efe150f8aff2d21dc0b Added comment on MachineRegistry --- diff --git a/plugins/net.mograsim.machine/src/net/mograsim/machine/MachineRegistry.java b/plugins/net.mograsim.machine/src/net/mograsim/machine/MachineRegistry.java index ca52eaea..089cf31c 100644 --- a/plugins/net.mograsim.machine/src/net/mograsim/machine/MachineRegistry.java +++ b/plugins/net.mograsim.machine/src/net/mograsim/machine/MachineRegistry.java @@ -16,10 +16,18 @@ import org.eclipse.core.runtime.IExtensionRegistry; import org.eclipse.core.runtime.IRegistryEventListener; import org.eclipse.core.runtime.Platform; +/** + * The MachineRegsitry is a static context registry for all {@link MachineDefinition}s known at any point during runtime. + *

+ * It is updated automatically as mograsim machine definition extension points ({@link #MACHINE_EXT_ID}) are added or removed. + * + * @author Christian Femers + * + */ public class MachineRegistry { - private static final String MACHINE_EXT_ID = "net.mograsim.machine.machine_definition"; + public static final String MACHINE_EXT_ID = "net.mograsim.machine.machine_definition"; private static final Map installedMachines = Collections.synchronizedMap(new HashMap<>()); private static final Set listeners = Collections.synchronizedSet(new HashSet<>());