public class ServiceExporter extends DependencyModel
DependencyModel.DependencyEventType, DependencyModel.ServiceBindingHolderBROKEN, DYNAMIC_BINDING_POLICY, DYNAMIC_PRIORITY_BINDING_POLICY, m_serviceReferenceManager, RESOLVED, STATIC_BINDING_POLICY, UNRESOLVED| Constructor and Description |
|---|
ServiceExporter(java.lang.Class specification,
org.osgi.framework.Filter filter,
boolean multiple,
boolean optional,
java.util.Comparator cmp,
int policy,
ServiceContext from,
org.osgi.framework.BundleContext dest,
DependencyStateListener listener,
CompositeManager manager)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onDependencyReconfiguration(org.osgi.framework.ServiceReference[] departs,
org.osgi.framework.ServiceReference[] arrivals)
On Dependency Reconfiguration notification method.
|
void |
onServiceArrival(org.osgi.framework.ServiceReference reference)
A service has been injected.
|
void |
onServiceDeparture(org.osgi.framework.ServiceReference reference)
An exported service disappears.
|
void |
onServiceModification(org.osgi.framework.ServiceReference reference)
An exported service was modified.
|
void |
stop()
Stop an exporter.
|
acquireReadLockIfNotHeld, acquireWriteLockIfNotHeld, addListener, applyReconfiguration, cleanup, getBindingPolicy, getBundleContext, getComparator, getComponentInstance, getContextSourceManager, getFilter, getId, getService, getService, getServiceReference, getServiceReferenceManager, getServiceReferences, getSize, getSpecification, getState, getTracker, getUsedServiceReferences, invalidateMatchingServices, invalidateSelectedServices, isAggregate, isFrozen, isOptional, match, notifyListeners, onChange, releaseReadLockIfHeld, releaseWriteLockIfHeld, removeListener, setAggregate, setBundleContext, setComparator, setFilter, setOptionality, setSpecification, start, unfreeze, ungetServicepublic ServiceExporter(java.lang.Class specification,
org.osgi.framework.Filter filter,
boolean multiple,
boolean optional,
java.util.Comparator cmp,
int policy,
ServiceContext from,
org.osgi.framework.BundleContext dest,
DependencyStateListener listener,
CompositeManager manager)
specification - : exported service specification.filter - : LDAP filtermultiple - : is the export an aggregate export?optional - : is the export optional?cmp - : comparator to use in the dependencypolicy - : binding policy.from - : internal service contextdest - : parent bundle contextlistener - : dependency lifecycle listener to notify when the dependency state change.manager - : composite managerpublic void stop()
stop in class DependencyModelpublic void onServiceArrival(org.osgi.framework.ServiceReference reference)
onServiceArrival in class DependencyModelreference - : the new reference.TrackerCustomizer.addedService(org.osgi.framework.ServiceReference)public void onServiceModification(org.osgi.framework.ServiceReference reference)
onServiceModification in class DependencyModelreference - : modified referenceTrackerCustomizer.modifiedService(org.osgi.framework.ServiceReference, java.lang.Object)public void onServiceDeparture(org.osgi.framework.ServiceReference reference)
onServiceDeparture in class DependencyModelreference - : service referenceTrackerCustomizer.removedService(org.osgi.framework.ServiceReference, java.lang.Object)public void onDependencyReconfiguration(org.osgi.framework.ServiceReference[] departs,
org.osgi.framework.ServiceReference[] arrivals)
onDependencyReconfiguration in class DependencyModeldeparts - : leaving service references.arrivals - : new injected service references.DependencyModel.onDependencyReconfiguration(org.osgi.framework.ServiceReference[], org.osgi.framework.ServiceReference[])Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.