First working version
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.thalesgroup.nl.chat.impl;
|
||||
|
||||
import com.thalesgroup.nl.chat.api.Chat;
|
||||
import org.osgi.service.component.annotations.Component;
|
||||
import org.osgi.service.remoteserviceadmin.RemoteConstants;
|
||||
|
||||
@Component(
|
||||
property = {RemoteConstants.SERVICE_EXPORTED_INTERFACES + "=com.thalesgroup.nl.chat.api.Chat",
|
||||
"participant.name=Bas"}
|
||||
)
|
||||
public class ChatImpl implements Chat {
|
||||
|
||||
@Override
|
||||
public void sendMessage(String author, String message){
|
||||
System.out.printf("%s: %s%n", author, message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user