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
/
test
/
java
/
org
/
wamblee
/
system
/
Application.java
diff --git
a/system/general/src/test/java/org/wamblee/system/Application.java
b/system/general/src/test/java/org/wamblee/system/Application.java
index 1a725b3c14d7c890f262f6027baf73b16d555f27..07b1e34cbc7939d6e30ce44b9acc8d7fcebfc40c 100644
(file)
--- a/
system/general/src/test/java/org/wamblee/system/Application.java
+++ b/
system/general/src/test/java/org/wamblee/system/Application.java
@@
-5,17
+5,21
@@
import javax.sql.DataSource;
public class Application extends AbstractSubSystem {
private static final ServiceDescriptor[] REQUIRED =
new ServiceDescriptor[] {
public class Application extends AbstractSubSystem {
private static final ServiceDescriptor[] REQUIRED =
new ServiceDescriptor[] {
- new Default
ServiceDescriptor(
DataSource.class),
- new Default
ServiceDescriptor(
Integer.class)
+ new Default
RequiredServiceDescriptor("datasource",
DataSource.class),
+ new Default
RequiredServiceDescriptor("integer",
Integer.class)
};
};
- public Application() {
- super("application", new ServiceDescriptor[0], REQUIRED);
+ public Application(
ServiceRegistry aRegistry
) {
+ super("application",
aRegistry,
new ServiceDescriptor[0], REQUIRED);
}
@Override
}
@Override
- protected void do
Initialize
(String aContext, Service[] aRequiredServices) {
+ protected void do
Start
(String aContext, Service[] aRequiredServices) {
// Empty, no services provided externally.
}
// Empty, no services provided externally.
}
-
+
+ @Override
+ protected void doStop() {
+ // Empty.
+ }
}
}