This repository has been archived on 2025-12-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tcommon-studio-se/org.talend.core.runtime/schema/service.exsd
2011-11-25 15:56:59 +00:00

131 lines
3.5 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.talend.core" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appinfo>
<meta.schema plugin="org.talend.core" id="service" name="Service Registration"/>
</appinfo>
<documentation>
[Provides service registration service.]
</documentation>
</annotation>
<element name="extension">
<annotation>
<appinfo>
<meta.element />
</appinfo>
</annotation>
<complexType>
<sequence minOccurs="1" maxOccurs="unbounded">
<element ref="Service"/>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="Service">
<complexType>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
</documentation>
<appinfo>
<meta.attribute kind="java" basedOn="org.talend.core.IService"/>
</appinfo>
</annotation>
</attribute>
<attribute name="serviceId" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appinfo>
<meta.section type="since"/>
</appinfo>
<documentation>
[1.1.0M3]
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="examples"/>
</appinfo>
<documentation>
[1 You should define a new interface extends org.talend.core.IService
ISampleService extends IService{
public void method1();
public void method2();
}
and puts the ISampleService in the org.talend.core.
2 Creates the concrete class implements the ISampleService,and the plug-in you want to regisger.
ConcreteService implements ISampleService(){
public void method1(){}
public void method2(){}
}
Puts the ConcreteService in the plug-in you want to regisger.
3 Defines the extension point in the plugin.xml of the plug-in you want to regisger.
&lt;extension
point=&quot;org.talend.core.service&quot;&gt;
&lt;Service class=&quot;ConcreteService&quot;/&gt;
&lt;/extension&gt;
]
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="apiInfo"/>
</appinfo>
<documentation>
[Enter API information here.]
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="implementation"/>
</appinfo>
<documentation>
[Enter information about supplied implementation of this extension point.]
</documentation>
</annotation>
</schema>