1
edit
Changes
→Create the Service Interface
==Create the Service Interface==
===Define the service interface===
*Right click src->New->Interface
:[[Image: T4L2_1.png]]
*Then
:[[Image: T4L2_2.png]]
*Fill in package and name, click Finish
:[[Image: T4L2_3.png]]
*Code at least one method, Save it
===Create the bundle with the interface===
*Right click src->New->Class
:[[Image: T4L2_4.png]]
*Then fill in package and name, click finish
:[[Image: T4L2_5.png]]
*Code the method body of sayHello(), save it
:[[Image: T4L2_6.png]]
==Implement the Service Provider==
===Register the service in the class Activator===