Skip to content

Commit

Permalink
Added new dummy connector for placement extension.
Browse files Browse the repository at this point in the history
=> addressed enhancement #1
  • Loading branch information
kortef committed Aug 22, 2018
1 parent e71317b commit 0b9621b
Show file tree
Hide file tree
Showing 8 changed files with 228 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/org.modmacao.placement.connector.dummy/.classpath
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>
28 changes: 28 additions & 0 deletions plugins/org.modmacao.placement.connector.dummy/.project
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>
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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/org/
15 changes: 15 additions & 0 deletions plugins/org.modmacao.placement.connector.dummy/build.properties
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, .
24 changes: 24 additions & 0 deletions plugins/org.modmacao.placement.connector.dummy/plugin.xml
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>
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();
}

}
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.
//




}

0 comments on commit 0b9621b

Please sign in to comment.