|
||||||||||
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.instantiator.ServiceImporter
public class ServiceImporter
Import a service form the parent to the internal service registry.
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 | |
---|---|
ServiceImporter(java.lang.Class specification,
org.osgi.framework.Filter filter,
boolean multiple,
boolean optional,
java.util.Comparator cmp,
int policy,
org.osgi.framework.BundleContext context,
java.lang.String identitity,
ServiceDependencyHandler handler)
Constructor. |
Method Summary | |
---|---|
void |
freeze()
Freeze the set of used provider. |
java.lang.String |
getId()
|
java.util.List |
getProviders()
Build the list of imported service provider. |
boolean |
isFrozen()
|
boolean |
isServiceLevelRequirement()
|
void |
onDependencyReconfiguration(org.osgi.framework.ServiceReference[] departs,
org.osgi.framework.ServiceReference[] arrivals)
On Dependency Reconfiguration notification method. |
void |
onServiceArrival(org.osgi.framework.ServiceReference ref)
A new service is injected by the tracker. |
void |
onServiceDeparture(org.osgi.framework.ServiceReference ref)
A used service disappears. |
void |
onServiceModification(org.osgi.framework.ServiceReference ref)
A used service is modified. |
void |
setServiceLevelDependency()
Set that this dependency is a service level dependency. |
void |
stop()
Stop the management of the import. |
Methods inherited from class org.apache.felix.ipojo.util.DependencyModel |
---|
addedService, addingService, getBindingPolicy, getComparator, getFilter, getPolicy, getService, getServiceReference, getServiceReferences, getSize, getSpecification, getState, getUsedServiceReferences, isAggregate, 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 ServiceImporter(java.lang.Class specification, org.osgi.framework.Filter filter, boolean multiple, boolean optional, java.util.Comparator cmp, int policy, org.osgi.framework.BundleContext context, java.lang.String identitity, ServiceDependencyHandler handler)
specification
- : targeted specificationfilter
- : LDAP filtermultiple
- : should the importer imports several services ?optional
- : is the import optional ?cmp
- : comparator to use for the trackingpolicy
- : resolving policycontext
- : bundle context to use for the tracking (can be a servie context)identitity
- : requirement id (may be null)handler
- : handlerMethod Detail |
---|
public void freeze()
public boolean isFrozen()
isFrozen
in class org.apache.felix.ipojo.util.DependencyModel
public void stop()
stop
in class org.apache.felix.ipojo.util.DependencyModel
public java.util.List getProviders()
public void setServiceLevelDependency()
b
- public java.lang.String getId()
public boolean isServiceLevelRequirement()
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[])
public void onServiceArrival(org.osgi.framework.ServiceReference ref)
onServiceArrival
in class org.apache.felix.ipojo.util.DependencyModel
ref
- : new service reference.DependencyModel.onServiceArrival(org.osgi.framework.ServiceReference)
public void onServiceDeparture(org.osgi.framework.ServiceReference ref)
onServiceDeparture
in class org.apache.felix.ipojo.util.DependencyModel
ref
- : leaving service reference.DependencyModel.onServiceDeparture(org.osgi.framework.ServiceReference)
public void onServiceModification(org.osgi.framework.ServiceReference ref)
onServiceModification
in class org.apache.felix.ipojo.util.DependencyModel
ref
- : modified service reference.DependencyModel.onServiceModification(org.osgi.framework.ServiceReference)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |