Beat Signer - Department of Computer Science -
[email protected]
ICOODB, July 3, 2009
Active Component Example
package org.ximtec.iserver.activecomponent.logic;
public class CommandLine extends EmptyLogic {
}
package org.ximtec.iserver.activecomponent.stub;
import java.io.IOException;
...
public class CommandLineStub extends SingleEventStub {
public static final String PARAM_COMMAND = "command";
public void finish() {
try {
Runtime.getRuntime().exec(getParameter(PARAM_COMMAND));
}
catch (IOException e) {
LOGGER.log(Level.SEVERE, Constant.EMPTY_STRING, e);
}
} // finish
}