|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.osgi.service.importer.support.AbstractDependableServiceImporter
public abstract class AbstractDependableServiceImporter
Base class implementing the DependableServiceImporter interface.
Abstract by default since it doesn't offer any OSGi specific functionality,
which have to be supplied by subclasses.
| Constructor Summary | |
|---|---|
AbstractDependableServiceImporter()
|
|
| Method Summary | |
|---|---|
Cardinality |
getCardinality()
Returns the cardinality used by this importer. |
boolean |
isMandatory()
Indicates if this dependency is mandatory or not. |
void |
registerListener(MandatoryDependencyListener listener)
Register a MandatoryDependencyListener on this importer. |
void |
setCardinality(Cardinality cardinality)
Sets the importer cardinality (0..1, 1..1, 0..N, or 1..N). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.osgi.service.dependency.ServiceDependency |
|---|
isSatisfied |
| Constructor Detail |
|---|
public AbstractDependableServiceImporter()
| Method Detail |
|---|
public void registerListener(MandatoryDependencyListener listener)
DependableServiceImporterMandatoryDependencyListener on this importer.
registerListener in interface DependableServiceImporterlistener - dependency listener to register.public boolean isMandatory()
ServiceDependency
isMandatory in interface ServiceDependencypublic void setCardinality(Cardinality cardinality)
cardinality - importer cardinality.public Cardinality getCardinality()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||