Now added support for ProvidedInterfaces in Container.
[utils] / system / general / src / main / java / org / wamblee / system / core / AbstractComponent.java
index 3c6be957ff78034e49f59e02284d8653600e77f2..6567e4e74067cf13f563e5e0f7f4ab6aa4cdc4be 100644 (file)
@@ -112,12 +112,13 @@ public abstract class AbstractComponent<Type> implements Component<Type> {
 
        @Override
        public final Type start(Scope aScope) {
-               LOG.info("Initializing '" + getQualifiedName() + "'");
+               LOG.info("Initialization starting '" + getQualifiedName() + "'");
                List<ProvidedInterface> oldRemaining = _remaining.get();
                _remaining.set(new ArrayList<ProvidedInterface>(Arrays.asList(getProvidedInterfaces())));
                try {
                        Type runtime = doStart(aScope);
                        checkNotStartedInterfaces();
+                       LOG.info("Initialization finished '" + getQualifiedName() + "'");
                        return runtime;
                } finally {
                        _remaining.set(oldRemaining);
@@ -164,8 +165,9 @@ public abstract class AbstractComponent<Type> implements Component<Type> {
 
        @Override
        public void stop(Type aRuntime) {
-           LOG.info("Stopping '" + getQualifiedName() + "'");
+           LOG.info("Stopping initiated '" + getQualifiedName() + "'");
                doStop(aRuntime);
+               LOG.info("Stopping completed '" + getQualifiedName() + "'");
        }
 
        protected abstract void doStop(Type aRuntime);