1 package net.mattmccutchen.addins;
3 import com.sun.star.lang.*;
4 import com.sun.star.lib.uno.helper.*;
6 public class ServiceBase<SH extends ServiceHelper> extends WeakBase
7 implements XServiceInfo, XServiceName {
10 protected ServiceBase(SH sh) {
14 public String getImplementationName() {
15 return sh.implementationName;
18 public String[] getSupportedServiceNames() {
19 return sh.serviceNames.toArray(new String[sh.serviceNames.size()]);
22 public boolean supportsService(String svc) {
23 return sh.serviceNames.contains(svc);
26 public String getServiceName() {
27 return sh.mainServiceName();