void setServiceProperties(Dictionary props) { ServiceRegistration current = registration; if (current != null) current.setProperties(props); }
/** * Sets the certificate's properties. * @param properties the properties to set */ @Override public void setProperties(Dictionary properties) { myRegistration.setProperties(properties); }
void setServiceProperties(Dictionary props) { ServiceRegistration current = registration; if (current != null) current.setProperties(props); }
/** * Update the current import. */ private void update() { if (m_reg != null) { m_reg.setProperties(getProps(m_ref)); } }
/** * Updates the {@link ServiceRegistration} of the {@link CoreContainer} after * some changes to the cores */ private void updateServerRegistration() { serverRegistration.setProperties(serverProperties); } /**
/** * Update the current import. */ private void update() { if (m_reg != null) { m_reg.setProperties(getProps(m_ref)); } }
protected void setProperties(Dictionary props) { ServiceRegistration reg = registration.get(); if (reg == null) { throw new IllegalStateException("Service is not registered"); } else { reg.setProperties(props); // TODO: set serviceProperties? convert somehow? should listeners be notified of this? } }
public void setProperties(Hashtable<String, Object> props) { this.serviceProps.clear(); this.serviceProps.putAll(props); if (this.serviceReg != null) { this.serviceReg.setProperties(this.serviceProps); } }
protected void setProperties(Dictionary props) { ServiceRegistration reg = registration.get(); if (reg == null) { throw new IllegalStateException("Service is not registered"); } else { reg.setProperties(props); // TODO: set serviceProperties? convert somehow? should listeners be notified of this? } }
@Override public void modifiedService(final ServiceReference<D> reference, final ServiceRegistration<B> service) { if (service != null && reference != null) { final Dict newProps = Dict.fromReference(reference); LOG.debug("Updating service {} with properties {}", service, newProps); service.setProperties(newProps); } }
/** {@inheritDoc} */ public void updated(Dictionary<String, ?> properties) throws ConfigurationException { if (properties != null) { setApplicationName((String) properties.get(APPLICATION_NAME)); } synchronized (this) { serviceRegistration.setProperties(properties); } }
@SuppressWarnings("rawtypes") public void updated(Dictionary properties) throws ConfigurationException { if (properties != null) { setApplicationName((String) properties.get(APPLICATION_NAME)); } synchronized (this) { serviceRegistration.setProperties(properties); } }
public void modifiedService(ServiceReference ref, Object service) { ServiceRegistration reg = (ServiceRegistration) service; Hashtable<String, Object> map = new Hashtable<String, Object>(); for (String key : ref.getPropertyKeys()) { map.put(key, ref.getProperty(key)); } map.put("aries.xa.aware", "true"); reg.setProperties(map); }
private void updateRegistration() { if (serviceRegistration != null) { serviceRegistration.setProperties(getEELProperties()); } }
/** * An exported service was modified. * @param reference : modified reference * @see org.apache.felix.ipojo.util.TrackerCustomizer#modifiedService(org.osgi.framework.ServiceReference, java.lang.Object) */ public void onServiceModification(ServiceReference reference) { ServiceRegistration reg = (ServiceRegistration) m_registrations.get(reference); if (reg != null) { reg.setProperties(getProps(reference)); } }
@SuppressWarnings("rawtypes") public void updated(Dictionary config) throws ConfigurationException { if (config != null) { Integer filterPriority = (Integer) config.get(FILTER_PRIORITY); String applicationName = (String) config.get(APPLICATION_NAME); setPriority(filterPriority); setApplicationName(applicationName); } synchronized (this) { filterFactoryServiceRegistration.setProperties(config); } }
/** {@inheritDoc} */ public void updated(Dictionary<String, ?> config) throws ConfigurationException { if (config != null) { Integer filterPriority = (Integer) config.get(FILTER_PRIORITY); String applicationName = (String) config.get(APPLICATION_NAME); setPriority(filterPriority); setApplicationName(applicationName); } synchronized (this) { filterFactoryServiceRegistration.setProperties(config); } }
void refreshProperties() { ServiceRegistration reg = getServiceRegistration(); if (reg != null) try { reg.setProperties(getServiceProperties()); } catch (IllegalStateException e) { // this must mean the service was unregistered // just ignore } }
void refreshProperties() { ServiceRegistration reg = getServiceRegistration(); if (reg != null) try { reg.setProperties(getServiceProperties()); } catch (IllegalStateException e) { // this must mean the service was unregistered // just ignore } }
@Override protected Entry<BeanConfigurationFactory.BeanServiceInstance> updateService ( final UserInformation userInformation, final String configurationId, final Entry<BeanConfigurationFactory.BeanServiceInstance> entry, final Map<String, String> parameters ) throws Exception { entry.getService ().update ( parameters ); entry.getHandle ().setProperties ( entry.getService ().getProperties () ); return null; }