blob: 04c6acb9c9fd5b2f3dc4d24c7b2e7538ec91461a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 BSI Business Systems Integration AG.
* 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
*
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
package org.eclipse.scout.service;
/**
* Interface for a service initializer.
*
* @see IServiceInitializerFactory
*/
public interface IServiceInitializer {
/**
* @return the run order of the initializer, the default initializer has order 0
*/
double getRunOrder();
/**
* @return one of the ServiceInitializerResult enums.
* ServiceInitializerResult.CONINUE lets the following initializer do their job
* ServiceInitializerResult.STOP breaks up and ignores the following initializers.
*/
ServiceInitializerResult initializeService(IService service);
enum ServiceInitializerResult {
/**
* lets the following initializer do their job
*/
CONTINUE,
/**
* breaks up and ignores the following initializers
*/
STOP
}
}