/** * Load the SwitchYard configuration model specified by the configModel stream. * @param configModel The config model stream. * @param validate Validate the model? * @return The SwitchYard config model. */ public SwitchYardModel loadSwitchYardModel(InputStream configModel, boolean validate) { return loadConfigModel(configModel, SwitchYardModel.class, validate); }
/** * Load the configuration model specified by the configModel stream. * @param <M> Model type. * @param configModel The config model stream. * @param modelType Model type. * @return The config model. */ public <M extends Model> M loadConfigModel(InputStream configModel, Class<M> modelType) { return loadConfigModel(configModel, modelType, true); }
/** * Load the SwitchYard configuration model specified by the configModel stream. * @param configModel The config model stream. * @param validate Validate the model? * @return The SwitchYard config model. */ public SwitchYardModel loadSwitchYardModel(InputStream configModel, boolean validate) { return loadConfigModel(configModel, SwitchYardModel.class, validate); }
/** * Load the configuration model specified by the configModel stream. * @param <M> Model type. * @param configModel The config model stream. * @param modelType Model type. * @return The config model. */ public <M extends Model> M loadConfigModel(InputStream configModel, Class<M> modelType) { return loadConfigModel(configModel, modelType, true); }