* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.wamblee.system.core;
-
-import javax.sql.DataSource;
+package org.wamblee.system.container;
import org.wamblee.system.core.AbstractComponent;
import org.wamblee.system.core.DefaultRequiredInterface;
import org.wamblee.system.core.ProvidedInterface;
import org.wamblee.system.core.RequiredInterface;
+import org.wamblee.system.core.Scope;
import org.wamblee.test.EventTracker;
public class Application extends AbstractComponent {
}
@Override
- protected Object doStart(Scope aScope) {
+ public Object doStart(Scope aScope) {
track("start." + getName());
_string = aScope.getInterfaceImplementation(getRequiredInterfaces()[0].getProvider(), String.class);
_integer = aScope.getInterfaceImplementation(getRequiredInterfaces()[1].getProvider(), Integer.class);
}
@Override
- protected void doStop(Object aRuntime) {
+ public void doStop(Object aRuntime) {
track("stop." + getName());
if ( _random != (Double)aRuntime) {
throw new IllegalArgumentException("Wrong runtime: expected " + _random + " but got " +