/* * Copyright (c) 2015 EMC Corporation * All Rights Reserved */ package com.emc.storageos.vasa.service.impl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.slf4j.bridge.SLF4JBridgeHandler; import org.springframework.context.support.FileSystemXmlApplicationContext; /** * Main class for vasa service */ public class Main { private static final String SERVICE_BEAN = "vasaserver"; private static final Logger _log = LoggerFactory.getLogger(Main.class); public static void main(String[] args) { try { SLF4JBridgeHandler.install(); FileSystemXmlApplicationContext ctx = new FileSystemXmlApplicationContext(args); VasaServer service = (VasaServer) ctx.getBean(SERVICE_BEAN); service.start(); } catch (Exception e) { _log.error("failed to start {}:", SERVICE_BEAN, e); System.exit(1); } } }