public void setServiceProperties(Dictionary serviceProperties) { m_delegate.setServiceProperties(serviceProperties); }
/** * Set some service properties to all already instantiated services. */ public void setServiceProperties(Dictionary<?,?> serviceProperties) { for (Component component : m_services.values()) { component.setServiceProperties(serviceProperties); } }
private void updateContextPath(String pattern) { Dictionary<Object, Object> serviceProperties = m_component.getServiceProperties(); String currentPath = (String) serviceProperties.get(HTTP_WHITEBOARD_CONTEXT_PATH); if (!pattern.equals(currentPath)) { serviceProperties.put(HTTP_WHITEBOARD_CONTEXT_PATH, pattern); m_component.setServiceProperties(serviceProperties); } } }
service.setServiceProperties(props); service.setServiceProperties(new Hashtable(extraProperties));
/** * Method called from our superclass, when we need to update a Service, because * the configuration has changed. */ @SuppressWarnings("unchecked") public void updateService(Object[] properties) throws Exception { Dictionary<String, ?> cmSettings = (Dictionary<String, ?>) properties[0]; Component service = (Component) properties[1]; CallbackTypeDef callbackInfo = createCallbackType(m_logger, service, m_configTypes, cmSettings); invokeUpdated(service, callbackInfo); if (m_serviceInterfaces != null && m_propagate == true) { Dictionary<String, ?> serviceProperties = getServiceProperties(cmSettings); service.setServiceProperties(serviceProperties); } }
serviceProps.put("containerName", containerName); c.setServiceProperties(serviceProps);
m_component.setServiceProperties(m_properties);
@Override public void update(Dictionary<String, ?> conf) { // Reconfigure an already existing Service. String configure = m_srvMeta.getString(Params.factoryConfigure, null); if (configure != null) { Log.instance().info("ServiceFactory: updating service %s", m_impl); invokeConfigure(m_impl, configure, conf); } // Update service properties String[] provides = m_srvMeta.getStrings(Params.provides, null); if (provides != null) { Dictionary<String, ?> serviceProperties = m_srvMeta.getDictionary(Params.properties, null); serviceProperties = mergeSettings(serviceProperties, conf); m_component.setServiceProperties(serviceProperties); } }
((Component) service).setServiceProperties(settings);
.setServiceProperties(aspectProperties);