git-svn-id: http://talendforge.org/svn/tos/trunk@73207 f6f1c999-d317-4740-80b0-e6d1abc6f99e
131 lines
3.5 KiB
XML
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.
|
|
<extension
|
|
point="org.talend.core.service">
|
|
<Service class="ConcreteService"/>
|
|
</extension>
|
|
]
|
|
</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>
|