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);
    }
}
