/** * Create a service proxy for registering a provided service. */ public IInternalService createInternalService(Object service, Class<?> type) { // boolean moni = getComponentDescription().getMonitoring()!=null? getComponentDescription().getMonitoring().booleanValue(): false; PublishEventLevel elm = getComponentDescription().getMonitoring()!=null? getComponentDescription().getMonitoring(): null; // todo: remove this? currently the level cannot be turned on due to missing interceptor boolean moni = elm!=null && !PublishEventLevel.OFF.equals(elm); IInternalService is = BasicServiceInvocationHandler.createProvidedServiceProxy( getInternalAccess(), getComponentAdapter(), service, null, type, BasicServiceInvocationHandler.PROXYTYPE_DECOUPLED, null, isCopy(), isRealtime(), getModel().getResourceIdentifier(), moni, null); return is; }
getInternalAccess(), getComponentAdapter(), service, name, type, proxytype, ics, isCopy(), isRealtime(), getModel().getResourceIdentifier(), moni, componentfetcher); getServiceContainer().addService(proxy, info).addResultListener(new ExceptionDelegationResultListener<Void, IInternalService>(ret)