Skip to content

Apam component descriptor

Thibaud Flury edited this page Jun 28, 2013 · 1 revision

Basic Descriptor for ApAM Component (metadata.xml)

<!--

    Copyright 2011-2013 Universite Joseph Fourier, LIG, ADELE team
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.

-->
<apam xmlns="fr.imag.adele.apam" xmlns:ipojo="org.apache.felix.ipojo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="fr.imag.adele.apam http://repository-apam.forge.cloudbees.com/release/schema/ApamCore.xsd" >    

 	<specification name="EmptySkeleton"
	   interfaces="mypackage.EmptySkeleton">
	   
 	   <definition name="CustomProperty" type="string" />
	</specification>

	<implementation name="EmptySkeletonImpl"
		specification="EmptySkeleton" 
		classname="mypackage.EmptySkeletonImpl">

		<property name="CustomProperty" value="my Implem Property" />
		<callback onInit="start" onRemove="stop" />
		
	</implementation>

	<apam-instance name="EmptySkeletonInstance" 
		implementation="EmptySkeletonImpl">
	</apam-instance>
</apam>

Clone this wiki locally