-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new dummy connector for placement extension.
=> addressed enhancement #1
- Loading branch information
Showing
8 changed files
with
228 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="src" path="src-gen"/> | ||
<classpathentry kind="src" path="/org.modmacao.placement"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>org.modmacao.placement.connector.dummy</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ManifestBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.SchemaBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
</natures> | ||
</projectDescription> |
13 changes: 13 additions & 0 deletions
13
plugins/org.modmacao.placement.connector.dummy/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/org/ |
15 changes: 15 additions & 0 deletions
15
plugins/org.modmacao.placement.connector.dummy/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
# - Faiez Zalila <[email protected]> | ||
# | ||
|
||
source.. = src-gen/ | ||
output.. = bin/ | ||
bin.includes = META-INF/, plugin.xml, . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?eclipse version="3.0"?> | ||
<!-- | ||
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 <[email protected]> | ||
- Faiez Zalila <[email protected]> | ||
--> | ||
<plugin> | ||
|
||
<!-- Register the factory of this connector. --> | ||
<extension point="org.eclipse.emf.ecore.factory_override"> | ||
<factory | ||
uri="http://schemas.modmacao.org/placement/ecore" | ||
class="org.modmacao.placement.connector.dummy.ConnectorFactory"/> | ||
</extension> | ||
|
||
</plugin> |
35 changes: 35 additions & 0 deletions
35
...ment.connector.dummy/src-gen/org/modmacao/placement/connector/dummy/ConnectorFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
* - Faiez Zalila <[email protected]> | ||
* | ||
* 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(); | ||
} | ||
|
||
} |
104 changes: 104 additions & 0 deletions
104
...onnector.dummy/src-gen/org/modmacao/placement/connector/dummy/PlacementlinkConnector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
* - Faiez Zalila <[email protected]> | ||
* | ||
* 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. | ||
// | ||
|
||
|
||
|
||
|
||
} |