Search in sources :

Example 1 with ProvisioningService

use of com.emc.storageos.api.service.ProvisioningService in project coprhd-controller by CoprHD.

the class Main method main.

public static void main(String[] args) {
    try {
        SLF4JBridgeHandler.install();
        // To using Spring profile feature
        GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
        ctx.getEnvironment().setActiveProfiles(System.getProperty("buildType"));
        ctx.load(args);
        ctx.refresh();
        ProvisioningService apiservice = (ProvisioningService) ctx.getBean(SERVICE_BEAN);
        apiservice.start();
    } catch (Exception e) {
        _log.error("failed to start {}:", SERVICE_BEAN, e);
        System.exit(1);
    }
}
Also used : ProvisioningService(com.emc.storageos.api.service.ProvisioningService) GenericXmlApplicationContext(org.springframework.context.support.GenericXmlApplicationContext)

Aggregations

ProvisioningService (com.emc.storageos.api.service.ProvisioningService)1 GenericXmlApplicationContext (org.springframework.context.support.GenericXmlApplicationContext)1