|
||||||||||
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(Class specification,
Filter filter,
boolean multiple,
boolean optional,
Comparator cmp,
int policy,
BundleContext context,
String identitity,
ServiceDependencyHandler handler)
Constructor. |
Method Summary | |
---|---|
void |
freeze()
Freeze the set of used provider. |
String |
getId()
|
List |
getProviders()
Build the list of imported service provider. |
boolean |
isFrozen()
|
boolean |
isServiceLevelRequirement()
|
void |
onDependencyReconfiguration(ServiceReference[] departs,
ServiceReference[] arrivals)
On Dependency Reconfiguration notification method. |
void |
onServiceArrival(ServiceReference ref)
A new service is injected by the tracker. |
void |
onServiceDeparture(ServiceReference ref)
A used service disappears. |
void |
onServiceModification(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, 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(Class specification, Filter filter, boolean multiple, boolean optional, Comparator cmp, int policy, BundleContext context, 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 DependencyModel
public void stop()
stop
in class DependencyModel
public List getProviders()
public void setServiceLevelDependency()
b
- public String getId()
public boolean isServiceLevelRequirement()
public void onDependencyReconfiguration(ServiceReference[] departs, ServiceReference[] arrivals)
onDependencyReconfiguration
in class DependencyModel
departs
- : leaving service references.arrivals
- : new injected service references.DependencyModel.onDependencyReconfiguration(org.osgi.framework.ServiceReference[], org.osgi.framework.ServiceReference[])
public void onServiceArrival(ServiceReference ref)
onServiceArrival
in class DependencyModel
ref
- : new service reference.DependencyModel.onServiceArrival(org.osgi.framework.ServiceReference)
public void onServiceDeparture(ServiceReference ref)
onServiceDeparture
in class DependencyModel
ref
- : leaving service reference.DependencyModel.onServiceDeparture(org.osgi.framework.ServiceReference)
public void onServiceModification(ServiceReference ref)
onServiceModification
in class 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 |