<p>modifiedService.</p>

@param reference a {@link org.osgi.framework.ServiceReference} object.
@param service a {@link org.ops4j.pax.wicket.internal.filter.FilterFactoryReference} object.
767685
public void modifiedService(ServiceReference<FilterFactory> reference, FilterFactoryReference service) {
        if (service != null) {
            service.setProperties(reference);
            LOGGER.debug("updated FilterFactory {} for application {}", service.getFactory().getClass().getName(),
                applicationName);
        }
    }
1231297
@Reference(service = MailSessionRegistrar.class,
                    policy = ReferencePolicy.DYNAMIC,
                    cardinality = ReferenceCardinality.OPTIONAL,
                    target = "(component.name=com.ibm.ws.javamail.management.j2ee.MailSessionRegistrarImpl)")
    protected void setMailSessionRegistrar(ServiceReference<MailSessionRegistrar> ref) {
        mailSessionRegistrarRef.setReference(ref);
        registerJavaMailMBean();
    }
1284568
@Reference(service = ComponentMetaDataDecorator.class, name = "componentMetadataDecorator",
               cardinality = ReferenceCardinality.MULTIPLE,
               policy = ReferencePolicy.DYNAMIC)
    protected void setComponentMetadataDecorator(ServiceReference<ComponentMetaDataDecorator> ref) {
        componentMetadataDecoratorRefs.putReference((String) ref.getProperty("component.name"), ref);
    }
201404
public ServiceReference<?>[] fetchReferences() {
        try {
            LOGGER.debug("Try to locate a suitable service for objectClass = "
                    + serviceInterface + " and filter = " + filterString);
            return bundleContext.getAllServiceReferences(serviceInterface, filterString);
        } catch (InvalidSyntaxException e) {
            LOGGER.error("Creation of filter failed: {}", e.getMessage(), e);
            throw new RuntimeException("Creation of filter failed", e);
        }
    }
905051
@Reference(cardinality=ReferenceCardinality.MULTIPLE, policy=ReferencePolicy.DYNAMIC)
	public void addFactory(TaskSystemFactory factory) {
		logger.finer("Adding factory: " + factory);
		filters.add(factory);
	}
626266
protected void setContextProvider(ServiceReference<JCAContextProvider> ref) {
        contextProviders.putReference((String) ref.getProperty(JCAContextProvider.TYPE), ref);
    }
348226
public void removedService(ServiceReference<FilterFactory> reference, FilterFactoryReference service) {
        bundleContext.ungetService(reference);
        if (service != null) {
            service.dispose();
            LOGGER.debug("removed filterFactory for application {}", applicationName);
        }
    }
678096
protected void unsetDataSourceFactory(ServiceReference<ResourceFactory> ref) {
        if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
            LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetDataSourceFactory", "unsetting " + ref);
        }
        dataSourceFactoryRef.unsetReference(ref);
    }
27872
public void addingService(ServiceReference<WebApplicationFactory<?>> reference, WebApplicationFactory<?> service) {
        PaxWicketApplicationFactory internalFactory =
            PaxWicketApplicationFactory.createPaxWicketApplicationFactory(context, service, reference);
        addApplication(reference, internalFactory);
    }
1127468
@Override
    public void setService(final String name, final FrameworkSupportService service){
        synchronized (services){
            if(null==services.get(name) && null!=service) {
                services.put(name, service);
            }else if(null==service) {
                services.remove(name);
            }
        }
    }
81744
@Reference(service = WSContextService.class,
               policy = ReferencePolicy.DYNAMIC,
               policyOption = ReferencePolicyOption.GREEDY,
               target = "(id=unbound)")
    protected void setContextService(ServiceReference<WSContextService> ref) {
        contextSvcRef.setReference(ref);
    }
702000
public void setReference(String reference) {

        m_reference = reference;
        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(Messages.LOG_SET_REFERENCE_1, m_reference));
        }
    }
622930
@Modified(id = "importerServices")
    void modifiedImporterService(ServiceReference<ImporterService> serviceReference) {
        try {
            importersManager.modified(serviceReference);
        } catch (InvalidFilterException invalidFilterException) {
            LOG.error("The ServiceProperty \"" + TARGET_FILTER_PROPERTY + "\" of the ImporterService "
                            + bundleContext.getService(serviceReference) + " doesn't provides a valid Filter."
                            + " To be used, it must provides a correct \"" + TARGET_FILTER_PROPERTY + "\" ServiceProperty.",
                    invalidFilterException
            );
            importersManager.removeLinks(serviceReference);
            return;
        }
        if (importersManager.matched(serviceReference)) {
            importersManager.updateLinks(serviceReference);
        } else {
            importersManager.removeLinks(serviceReference);
        }
    }
685115
@Reference(name = REFERENCE_BEANVALIDATION_SERVICE, service = BeanValidation.class)
    protected void setBeanValidation(ServiceReference<BeanValidation> ref) {
        this.beanValidation.setReference(ref);
    }
628249
@Override
    protected S addService(S service, ServiceProperties props) {
        if (reference.compareAndSet(null, service)) {
            return service;
        }
        return null;
    }
263748
@Override
    public void removedService(ServiceReference<ManagedServiceFactory> reference, ManagedServiceFactory service) {
        String[] factoryPids = getServicePid(reference);

        if (factoryPids == null) {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "removedService(): Invalid service.pid type: " + reference);
            }
            return;
        }

        synchronized (caFactory.getConfigurationStore()) {
            for (String pid : factoryPids) {
                remove(reference, pid);
            }
        }

        context.ungetService(reference);
    }
268781
protected void setExecutor(ServiceReference<ExecutorService> ref) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            Tr.debug(tc, "setExecutor", ref);
        execSvcRef.setReference(ref);
    }