|
||||||||||
| 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.SvcInstance
public class SvcInstance
Manage a service instantiation. This service create component instance providing the required service specification.
| 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 | |
|---|---|
SvcInstance(ServiceDependencyHandler handler,
java.lang.String spec,
java.util.Dictionary conf,
boolean isAgg,
boolean isOpt,
org.osgi.framework.Filter filt,
java.util.Comparator cmp,
int policy)
Constructor. |
|
| Method Summary | |
|---|---|
void |
freeze()
Freeze the set of used provider. |
protected java.util.Map |
getMatchingFactories()
Get the map of used references [reference, component instance]. |
java.lang.String |
getServiceSpecification()
Get the required specification. |
boolean |
isFrozen()
|
boolean |
match(org.osgi.framework.ServiceReference fact)
Does the service instance match with the given factory ? |
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. |
void |
onServiceDeparture(org.osgi.framework.ServiceReference ref)
A used service is leaving. |
void |
stop()
Stop the service instance. |
| 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, modifiedService, onServiceModification, 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 SvcInstance(ServiceDependencyHandler handler,
java.lang.String spec,
java.util.Dictionary conf,
boolean isAgg,
boolean isOpt,
org.osgi.framework.Filter filt,
java.util.Comparator cmp,
int policy)
throws org.apache.felix.ipojo.ConfigurationException
handler - : the handler.spec - : required specification.conf - : instance configuration.isAgg - : is the service instance an aggregate service ?isOpt - : is the service instance optional ?filt - : LDAP filtercmp - : comparator to use for the trackingpolicy - : binding policy
org.apache.felix.ipojo.ConfigurationException - : an attribute cannot be parsed correctly, or is incorrect.| Method Detail |
|---|
public void stop()
stop in class org.apache.felix.ipojo.util.DependencyModelpublic boolean isFrozen()
isFrozen in class org.apache.felix.ipojo.util.DependencyModelpublic void freeze()
public boolean match(org.osgi.framework.ServiceReference fact)
match in class org.apache.felix.ipojo.util.DependencyModelfact - : the factory to test.
public java.lang.String getServiceSpecification()
protected java.util.Map getMatchingFactories()
public void onDependencyReconfiguration(org.osgi.framework.ServiceReference[] departs,
org.osgi.framework.ServiceReference[] arrivals)
onDependencyReconfiguration in class org.apache.felix.ipojo.util.DependencyModeldeparts - : 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.DependencyModelref - : service reference.DependencyModel.onServiceArrival(org.osgi.framework.ServiceReference)public void onServiceDeparture(org.osgi.framework.ServiceReference ref)
onServiceDeparture in class org.apache.felix.ipojo.util.DependencyModelref - : leaving service reference.DependencyModel.onServiceDeparture(org.osgi.framework.ServiceReference)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||