From 0b9621b52d05212e02c7c60f00e4bb6cd85a6a8b Mon Sep 17 00:00:00 2001 From: Fabian Korte Date: Wed, 22 Aug 2018 02:16:34 +0200 Subject: [PATCH] Added new dummy connector for placement extension. => addressed enhancement #1 --- .../.classpath | 8 ++ .../.project | 28 +++++ .../META-INF/MANIFEST.MF | 13 +++ .../bin/.gitignore | 1 + .../build.properties | 15 +++ .../plugin.xml | 24 ++++ .../connector/dummy/ConnectorFactory.java | 35 ++++++ .../dummy/PlacementlinkConnector.java | 104 ++++++++++++++++++ 8 files changed, 228 insertions(+) create mode 100644 plugins/org.modmacao.placement.connector.dummy/.classpath create mode 100644 plugins/org.modmacao.placement.connector.dummy/.project create mode 100644 plugins/org.modmacao.placement.connector.dummy/META-INF/MANIFEST.MF create mode 100644 plugins/org.modmacao.placement.connector.dummy/bin/.gitignore create mode 100644 plugins/org.modmacao.placement.connector.dummy/build.properties create mode 100644 plugins/org.modmacao.placement.connector.dummy/plugin.xml create mode 100644 plugins/org.modmacao.placement.connector.dummy/src-gen/org/modmacao/placement/connector/dummy/ConnectorFactory.java create mode 100644 plugins/org.modmacao.placement.connector.dummy/src-gen/org/modmacao/placement/connector/dummy/PlacementlinkConnector.java diff --git a/plugins/org.modmacao.placement.connector.dummy/.classpath b/plugins/org.modmacao.placement.connector.dummy/.classpath new file mode 100644 index 0000000..dcb5d5f --- /dev/null +++ b/plugins/org.modmacao.placement.connector.dummy/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/plugins/org.modmacao.placement.connector.dummy/.project b/plugins/org.modmacao.placement.connector.dummy/.project new file mode 100644 index 0000000..1c7c63b --- /dev/null +++ b/plugins/org.modmacao.placement.connector.dummy/.project @@ -0,0 +1,28 @@ + + + org.modmacao.placement.connector.dummy + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + + diff --git a/plugins/org.modmacao.placement.connector.dummy/META-INF/MANIFEST.MF b/plugins/org.modmacao.placement.connector.dummy/META-INF/MANIFEST.MF new file mode 100644 index 0000000..1f3f716 --- /dev/null +++ b/plugins/org.modmacao.placement.connector.dummy/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.modmacao.placement.connector.dummy +Bundle-SymbolicName: org.modmacao.placement.connector.dummy;singleton:=true +Bundle-Version: 1.0.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: OCCIware +Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Bundle-ActivationPolicy: lazy +Require-Bundle: org.slf4j.api, + org.eclipse.cmf.occi.core, + org.modmacao.placement +Export-Package: org.modmacao.placement.connector.dummy diff --git a/plugins/org.modmacao.placement.connector.dummy/bin/.gitignore b/plugins/org.modmacao.placement.connector.dummy/bin/.gitignore new file mode 100644 index 0000000..cf1db2e --- /dev/null +++ b/plugins/org.modmacao.placement.connector.dummy/bin/.gitignore @@ -0,0 +1 @@ +/org/ diff --git a/plugins/org.modmacao.placement.connector.dummy/build.properties b/plugins/org.modmacao.placement.connector.dummy/build.properties new file mode 100644 index 0000000..cceedd3 --- /dev/null +++ b/plugins/org.modmacao.placement.connector.dummy/build.properties @@ -0,0 +1,15 @@ +# Copyright (c) 2016-2017 Inria +# +# 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: +# - Philippe Merle +# - Faiez Zalila +# + +source.. = src-gen/ +output.. = bin/ +bin.includes = META-INF/, plugin.xml, . diff --git a/plugins/org.modmacao.placement.connector.dummy/plugin.xml b/plugins/org.modmacao.placement.connector.dummy/plugin.xml new file mode 100644 index 0000000..bce5cf4 --- /dev/null +++ b/plugins/org.modmacao.placement.connector.dummy/plugin.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/plugins/org.modmacao.placement.connector.dummy/src-gen/org/modmacao/placement/connector/dummy/ConnectorFactory.java b/plugins/org.modmacao.placement.connector.dummy/src-gen/org/modmacao/placement/connector/dummy/ConnectorFactory.java new file mode 100644 index 0000000..c808ee2 --- /dev/null +++ b/plugins/org.modmacao.placement.connector.dummy/src-gen/org/modmacao/placement/connector/dummy/ConnectorFactory.java @@ -0,0 +1,35 @@ +/** + * Copyright (c) 2016-2017 Inria + * + * 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: + * - Philippe Merle + * - Faiez Zalila + * + * Generated at Wed Aug 22 02:14:11 CEST 2018 from platform:/resource/org.modmacao.placement/model/placement.occie by org.eclipse.cmf.occi.core.gen.connector + */ +package org.modmacao.placement.connector.dummy; + +/** + * Connector EFactory for the OCCI extension: + * - name: placement + * - scheme: http://schemas.modmacao.org/placement# + */ +public class ConnectorFactory extends org.modmacao.placement.impl.PlacementFactoryImpl +{ + /** + * EFactory method for OCCI kind: + * - scheme: http://schemas.modmacao.org/placement# + * - term: placementlink + * - title: + */ + @Override + public org.modmacao.placement.Placementlink createPlacementlink() { + return new PlacementlinkConnector(); + } + +} diff --git a/plugins/org.modmacao.placement.connector.dummy/src-gen/org/modmacao/placement/connector/dummy/PlacementlinkConnector.java b/plugins/org.modmacao.placement.connector.dummy/src-gen/org/modmacao/placement/connector/dummy/PlacementlinkConnector.java new file mode 100644 index 0000000..6b0a824 --- /dev/null +++ b/plugins/org.modmacao.placement.connector.dummy/src-gen/org/modmacao/placement/connector/dummy/PlacementlinkConnector.java @@ -0,0 +1,104 @@ +/** + * Copyright (c) 2016-2017 Inria + * + * 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: + * - Philippe Merle + * - Faiez Zalila + * + * Generated at Wed Aug 22 02:14:11 CEST 2018 from platform:/resource/org.modmacao.placement/model/placement.occie by org.eclipse.cmf.occi.core.gen.connector + */ +package org.modmacao.placement.connector.dummy; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + + +/** + * Connector implementation for the OCCI kind: + * - scheme: http://schemas.modmacao.org/placement# + * - term: placementlink + * - title: + */ +public class PlacementlinkConnector extends org.modmacao.placement.impl.PlacementlinkImpl +{ + /** + * Initialize the logger. + */ + private static Logger LOGGER = LoggerFactory.getLogger(PlacementlinkConnector.class); + + // Start of user code Placementlinkconnector_constructor + /** + * Constructs a placementlink connector. + */ + PlacementlinkConnector() + { + LOGGER.debug("Constructor called on " + this); + // TODO: Implement this constructor. + } + // End of user code + // + // OCCI CRUD callback operations. + // + + // Start of user code PlacementlinkocciCreate + /** + * Called when this Placementlink instance is completely created. + */ + @Override + public void occiCreate() + { + LOGGER.debug("occiCreate() called on " + this); + // TODO: Implement this callback or remove this method. + } + // End of user code + + // Start of user code Placementlink_occiRetrieve_method + /** + * Called when this Placementlink instance must be retrieved. + */ + @Override + public void occiRetrieve() + { + LOGGER.debug("occiRetrieve() called on " + this); + // TODO: Implement this callback or remove this method. + } + // End of user code + + // Start of user code Placementlink_occiUpdate_method + /** + * Called when this Placementlink instance is completely updated. + */ + @Override + public void occiUpdate() + { + LOGGER.debug("occiUpdate() called on " + this); + // TODO: Implement this callback or remove this method. + } + // End of user code + + // Start of user code PlacementlinkocciDelete_method + /** + * Called when this Placementlink instance will be deleted. + */ + @Override + public void occiDelete() + { + LOGGER.debug("occiDelete() called on " + this); + // TODO: Implement this callback or remove this method. + } + // End of user code + + // + // Placementlink actions. + // + + + + +}