git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
now distinguishing between provided and required service and added
[utils]
/
system
/
general
/
src
/
main
/
java
/
org
/
wamblee
/
system
/
SubSystem.java
diff --git
a/system/general/src/main/java/org/wamblee/system/SubSystem.java
b/system/general/src/main/java/org/wamblee/system/SubSystem.java
index 9d68ee4e39a98c312c21790fd8b7ac5d1d03e8ee..38c9b9c9508a982dc33e7fc1609f6b840d2b90cb 100644
(file)
--- a/
system/general/src/main/java/org/wamblee/system/SubSystem.java
+++ b/
system/general/src/main/java/org/wamblee/system/SubSystem.java
@@
-16,13
+16,13
@@
public interface SubSystem {
* Gets a description of the provided interfaces.
* @return Provided interfaces.
*/
* Gets a description of the provided interfaces.
* @return Provided interfaces.
*/
- ServiceDescriptor[] getProvidedServices();
+
Provided
ServiceDescriptor[] getProvidedServices();
/**
* Gets a description of the required interfaces.
* @return Required interfaces.
*/
/**
* Gets a description of the required interfaces.
* @return Required interfaces.
*/
- ServiceDescriptor[] getRequiredServices();
+
Required
ServiceDescriptor[] getRequiredServices();
/**
/**
@@
-33,7
+33,12
@@
public interface SubSystem {
* subsystems that are required by this subsystem.
* @return Services that are running in the subsystem.
*/
* subsystems that are required by this subsystem.
* @return Services that are running in the subsystem.
*/
- Service[] initialize(String aContext, Service[] aRequiredServices);
+ Service[] start(String aContext, Service[] aRequiredServices);
+
+ /**
+ * Stops a subsystem.
+ */
+ void stop();
/**
* Gets the list of running services in the subsystem.
/**
* Gets the list of running services in the subsystem.