All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.spincast.plugins.configpropsfile.ISpincastConfigPropsFileBasedConfig Maven / Gradle / Ivy

The newest version!
package org.spincast.plugins.configpropsfile;

import com.google.inject.ImplementedBy;

/**
 * Configurations for the Spincast .properties based config plugin.
 * 
 * We use "@ImplementedBy" to specify the default configurations
 * to use if none is specified in a Guice module.
 */
@ImplementedBy(SpincastConfigPropsFileBasedConfigDefault.class)
public interface ISpincastConfigPropsFileBasedConfig {

    public static final String APP_PROPERTIES_FILE_NAME_DEFAULT = "app.properties";

    /**
     * The position of the main argument that specifies
     * the path to the .properties file to use for the
     * configurations. The first argument is at position 
     * "1".
     * 

* Disabled by default. *

* * @return the position of the argument or <= 0 to * disable this strategy. */ public int getSpecificPathMainArgsPosition(); /** * The name of the .properties file to search for next * to the .jar file of the application. *

* Defaults to "app.properties". *

* * @return the name of the config file or null/empty * to disable this strategy. */ public String getNextToJarConfigFileName(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy