Search in sources :

Example 11 with Props

use of jodd.props.Props in project jodd by oblac.

the class Madvoc method loadMadvocParams.

/**
 * Loads Madvoc parameters. New {@link Props} is created from the classpath.
 */
protected Props loadMadvocParams(final String[] patterns) {
    if (log.isInfoEnabled()) {
        log.info("Loading Madvoc parameters from: " + Converter.get().toString(patterns));
    }
    try {
        final Props props = new Props();
        loadFromClasspath(props, patterns);
        return props;
    } catch (final Exception ex) {
        throw new MadvocException("Unable to load Madvoc parameters from: " + Converter.get().toString(patterns) + ".properties': " + ex.toString(), ex);
    }
}
Also used : Props(jodd.props.Props) UncheckedException(jodd.exception.UncheckedException)

Aggregations

Props (jodd.props.Props)11 Test (org.junit.jupiter.api.Test)2 File (java.io.File)1 ParseException (java.text.ParseException)1 SimpleDateFormat (java.text.SimpleDateFormat)1 Date (java.util.Date)1 UncheckedException (jodd.exception.UncheckedException)1 AutomagicMadvocConfigurator (jodd.madvoc.AutomagicMadvocConfigurator)1 ActionsManager (jodd.madvoc.component.ActionsManager)1 FiltersManager (jodd.madvoc.component.FiltersManager)1 InterceptorsManager (jodd.madvoc.component.InterceptorsManager)1 MadvocConfig (jodd.madvoc.component.MadvocConfig)1 MadvocController (jodd.madvoc.component.MadvocController)1 ResultsManager (jodd.madvoc.component.ResultsManager)1 AutomagicMadvocConfigurator (jodd.madvoc.config.AutomagicMadvocConfigurator)1 MadvocConfigurator (jodd.madvoc.config.MadvocConfigurator)1 PetiteWebApp (jodd.madvoc.petite.PetiteWebApp)1 ProxettaSupplier (jodd.madvoc.proxetta.ProxettaSupplier)1 PojoBean2 (jodd.petite.data.PojoBean2)1 Test (org.junit.Test)1