|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.ipojo.util.DependencyModel
org.apache.felix.ipojo.composite.service.provides.ServiceExporter
public class ServiceExporter
Export an service from the scope to the parent context.
| Field Summary |
|---|
| Fields inherited from class org.apache.felix.ipojo.util.DependencyModel |
|---|
BROKEN, DYNAMIC_BINDING_POLICY, DYNAMIC_PRIORITY_BINDING_POLICY, RESOLVED, STATIC_BINDING_POLICY, UNRESOLVED |
| Constructor Summary | |
|---|---|
ServiceExporter(Class specification,
Filter filter,
boolean multiple,
boolean optional,
Comparator cmp,
int policy,
ServiceContext from,
BundleContext dest,
DependencyStateListener listener,
CompositeManager manager)
Constructor. |
|
| Method Summary | |
|---|---|
void |
onDependencyReconfiguration(ServiceReference[] departs,
ServiceReference[] arrivals)
On Dependency Reconfiguration notification method. |
void |
onServiceArrival(ServiceReference reference)
A service has been injected. |
void |
onServiceDeparture(ServiceReference reference)
An exported service disappears. |
void |
onServiceModification(ServiceReference reference)
An exported service was modified. |
void |
stop()
Stop an exporter. |
| Methods inherited from class org.apache.felix.ipojo.util.DependencyModel |
|---|
addedService, addingService, getBindingPolicy, getComparator, getComparator, getFilter, getPolicy, getService, getServiceReference, getServiceReferences, getSize, getSpecification, getState, getUsedServiceReferences, isAggregate, isFrozen, isOptional, loadSpecification, match, modifiedService, removedService, setAggregate, setBindingPolicy, setBundleContext, setComparator, setFilter, setOptionality, setSpecification, start, ungetService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceExporter(Class specification,
Filter filter,
boolean multiple,
boolean optional,
Comparator cmp,
int policy,
ServiceContext from,
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 manager| Method Detail |
|---|
public void stop()
stop in class DependencyModelpublic void onServiceArrival(ServiceReference reference)
onServiceArrival in class DependencyModelreference - : the new reference.TrackerCustomizer.addedService(org.osgi.framework.ServiceReference)public void onServiceModification(ServiceReference reference)
onServiceModification in class DependencyModelreference - : modified referenceTrackerCustomizer.modifiedService(org.osgi.framework.ServiceReference, java.lang.Object)public void onServiceDeparture(ServiceReference reference)
onServiceDeparture in class DependencyModelreference - : service referenceTrackerCustomizer.removedService(org.osgi.framework.ServiceReference, java.lang.Object)
public void onDependencyReconfiguration(ServiceReference[] departs,
ServiceReference[] arrivals)
onDependencyReconfiguration in class DependencyModeldeparts - : leaving service references.arrivals - : new injected service references.DependencyModel.onDependencyReconfiguration(org.osgi.framework.ServiceReference[], org.osgi.framework.ServiceReference[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||