Search in sources :

Example 1 with StartException

use of org.mule.runtime.core.api.lifecycle.StartException in project mule by mulesoft.

the class MuleServiceManager method start.

@Override
public void start() throws MuleException {
    File servicesFolder = getServicesFolder();
    if (!servicesFolder.exists()) {
        servicesFolder.mkdir();
    }
    try {
        registeredServices = serviceDiscoverer.discoverServices();
        wrappedServices = wrapServices(registeredServices);
        startServices();
    } catch (Exception e) {
        throw new StartException(e, this);
    }
}
Also used : StartException(org.mule.runtime.core.api.lifecycle.StartException) File(java.io.File) StartException(org.mule.runtime.core.api.lifecycle.StartException) MuleException(org.mule.runtime.api.exception.MuleException)

Aggregations

File (java.io.File)1 MuleException (org.mule.runtime.api.exception.MuleException)1 StartException (org.mule.runtime.core.api.lifecycle.StartException)1