blob: faf0cf828a023fe202ef9c22f9e441aee8534ddb [file] [log] [blame]
/**
******************************************************************************
* Copyright © 2018 PTA GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
*
* http://www.eclipse.org/legal/epl-v10.html
*
******************************************************************************
*/
package org.eclipse.openk.mics.home.controller;
import org.apache.log4j.Logger;
import org.eclipse.openk.mics.home.viewmodel.VersionInfo;
public class BackendController {
private static final Logger LOGGER = Logger.getLogger(BackendController.class.getName());
public VersionInfo getVersionInfo() {
LOGGER.info("getVersionInfo is called");
try {
return getVersionInfoImpl(getClass().getPackage().getImplementationVersion());
} finally {
LOGGER.info("getVersionInfo is finished");
}
}
private VersionInfo getVersionInfoImpl(String pomVersion) {
VersionInfo vi = new VersionInfo();
vi.setBackendVersion(pomVersion);
return vi;
}
}