Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/ISystemServicesRegistry.java')
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/ISystemServicesRegistry.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/ISystemServicesRegistry.java b/extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/ISystemServicesRegistry.java
new file mode 100644
index 00000000000..2617011ae52
--- /dev/null
+++ b/extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/ISystemServicesRegistry.java
@@ -0,0 +1,46 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.moka.fuml.registry;
+
+import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.Locus;
+
+
+/**
+ * The main entry point for the org.eclipse.papyrus.moka.services extension point,
+ * which enables to pre-instantiate services objects at the locus before any execution starts.
+ * Contributing to this extension point simply consists in implementing this interface.
+ *
+ * @see AbstractSystemServicesRegistry, which provides an abstract implementation for this interface.
+ *
+ */
+public interface ISystemServicesRegistry {
+
+ /**
+ * Performs some initializations on the context ISystemServicesRegistry.
+ * This method should be called before calling registerSystemServices.
+ *
+ * @param parameters The object representing the initialization parameters for the context ISystemServicesRegistry
+ * @return The initialized ISystemServicesRegistry
+ */
+ public ISystemServicesRegistry init(Object parameters);
+
+ /**
+ * Register specific system services at the given locus
+ *
+ * @param locus The locus where services have to be registered
+ */
+ public void registerSystemServices(Locus locus) ;
+
+}

Back to the top