S - Type of the OSGi service.COMPONENT - Type of the component implementation.public class ServiceReferenceAttributeHelper<S,COMPONENT> extends ReferenceHelper<org.osgi.framework.ServiceReference<S>,COMPONENT,org.everit.osgi.ecm.metadata.ServiceReferenceMetadata>
ReferenceHelper for OSGi service references.ReferenceHelper.ReferenceCapabilityConsumer| Constructor and Description |
|---|
ServiceReferenceAttributeHelper(org.everit.osgi.ecm.metadata.ServiceReferenceMetadata referenceMetadata,
ComponentContextImpl<COMPONENT> componentContext,
ReferenceEventHandler eventHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindInternal() |
void |
close() |
protected org.everit.osgi.capabilitycollector.AbstractCapabilityCollector<org.osgi.framework.ServiceReference<S>> |
createCollector(ReferenceHelper.ReferenceCapabilityConsumer consumer,
org.everit.osgi.capabilitycollector.RequirementDefinition<org.osgi.framework.ServiceReference<S>>[] items) |
void |
free()
Called when the component failes and every attached resource should be unattached.
|
bind, getComponentContext, getReferenceMetadata, getSetterMethodHandle, getSuitings, isArray, isHolder, isOpened, isSatisfied, open, updateConfigurationpublic ServiceReferenceAttributeHelper(org.everit.osgi.ecm.metadata.ServiceReferenceMetadata referenceMetadata,
ComponentContextImpl<COMPONENT> componentContext,
ReferenceEventHandler eventHandler)
throws IllegalAccessException
IllegalAccessExceptionprotected void bindInternal()
bindInternal in class ReferenceHelper<org.osgi.framework.ServiceReference<S>,COMPONENT,org.everit.osgi.ecm.metadata.ServiceReferenceMetadata>public void close()
close in class ReferenceHelper<org.osgi.framework.ServiceReference<S>,COMPONENT,org.everit.osgi.ecm.metadata.ServiceReferenceMetadata>protected org.everit.osgi.capabilitycollector.AbstractCapabilityCollector<org.osgi.framework.ServiceReference<S>> createCollector(ReferenceHelper.ReferenceCapabilityConsumer consumer, org.everit.osgi.capabilitycollector.RequirementDefinition<org.osgi.framework.ServiceReference<S>>[] items)
createCollector in class ReferenceHelper<org.osgi.framework.ServiceReference<S>,COMPONENT,org.everit.osgi.ecm.metadata.ServiceReferenceMetadata>public void free()
ReferenceHelperfree in class ReferenceHelper<org.osgi.framework.ServiceReference<S>,COMPONENT,org.everit.osgi.ecm.metadata.ServiceReferenceMetadata>Copyright © 2011–2015 Everit Kft.. All rights reserved.