use of org.ovirt.engine.ui.uicommonweb.ConsoleUtils in project ovirt-engine by oVirt.
the class SpiceConsoleModel method initConsole.
/**
* Performs initial configuration (different for WA/UP).
*/
public void initConsole() {
ConsoleUtils consoleUtils = (ConsoleUtils) TypeResolver.getInstance().resolve(ConsoleUtils.class);
setSpiceImpl((ConsoleClient) TypeResolver.getInstance().resolve(ISpiceNative.class));
getConfigurator().configure(getSpiceImpl());
if (getEntity() != null) {
boolean isSpiceProxyDefined = consoleUtils.isSpiceProxyDefined(getEntity());
getSpiceImpl().getOptions().setSpiceProxyEnabled(isSpiceProxyDefined);
}
}
Aggregations