|
||||||||||
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(java.lang.Class specification,
org.osgi.framework.Filter filter,
boolean multiple,
boolean optional,
java.util.Comparator cmp,
int policy,
org.apache.felix.ipojo.ServiceContext from,
org.osgi.framework.BundleContext dest,
org.apache.felix.ipojo.util.DependencyStateListener listener,
CompositeManager manager)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.felix.ipojo.util.DependencyModel |
---|
addedService, addingService, getBindingPolicy, 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(java.lang.Class specification, org.osgi.framework.Filter filter, boolean multiple, boolean optional, java.util.Comparator cmp, int policy, org.apache.felix.ipojo.ServiceContext from, org.osgi.framework.BundleContext dest, org.apache.felix.ipojo.util.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 managerMethod Detail |
---|
public void stop()
stop
in class org.apache.felix.ipojo.util.DependencyModel
public void onServiceArrival(org.osgi.framework.ServiceReference reference)
onServiceArrival
in class org.apache.felix.ipojo.util.DependencyModel
reference
- : the new reference.TrackerCustomizer.addedService(org.osgi.framework.ServiceReference)
public void onServiceModification(org.osgi.framework.ServiceReference reference)
onServiceModification
in class org.apache.felix.ipojo.util.DependencyModel
reference
- : modified referenceTrackerCustomizer.modifiedService(org.osgi.framework.ServiceReference, java.lang.Object)
public void onServiceDeparture(org.osgi.framework.ServiceReference reference)
onServiceDeparture
in class org.apache.felix.ipojo.util.DependencyModel
reference
- : 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 org.apache.felix.ipojo.util.DependencyModel
departs
- : 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 |