My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.extensiblejava.hello.service.impl;

import java.util.Properties;
import com.extensiblejava.hello.service.HelloService;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceListener;
import org.osgi.framework.ServiceEvent;
import org.osgi.framework.ServiceRegistration;

public class HelloServiceImpl implements HelloService, BundleActivator {

private ServiceRegistration registration;

public void start(BundleContext context) {
Properties props = new Properties();
props.put("Language", "English");
registration = context.registerService(HelloService.class.getName(), this, props);
}

public void stop(BundleContext context) {

}

public String sayHello() {
return "Hello World!! ";
}

public String sayGoodbye() {
return "Goodbye World!!";
}
}
Show details Hide details

Change log

r12 by pragkirk on Mar 18, 2008   Diff
Initial checkin.
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 880 bytes, 32 lines

File properties

svn:executable
Hosted by Google Code