
org.nuiton.util.ApplicationConfigProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nuiton-utils Show documentation
Show all versions of nuiton-utils Show documentation
Library of usefull class to be used in any project.
/*
* #%L
* Nuiton Utils :: Nuiton Utils
*
* $Id: ApplicationConfigProvider.java 2513 2013-02-26 07:22:43Z tchemit $
* $HeadURL: http://svn.nuiton.org/svn/nuiton-utils/tags/nuiton-utils-2.6.10/nuiton-utils/src/main/java/org/nuiton/util/ApplicationConfigProvider.java $
* %%
* Copyright (C) 2004 - 2012 CodeLutin
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
package org.nuiton.util;
import java.util.Locale;
import java.util.ServiceLoader;
/**
* Provider of a {@link ApplicationConfig}.
*
* Each library of application which use {@link ApplicationConfig} should
* implements this and add the provider available via the
* {@link ServiceLoader} mecanism.
*
* Using such provider offers a nice way to find out what options can be loaded
* in a application. It also offers a simply way to generate application
* config report for documentation.
*
* @author tchemit
* @since 1.4.8
* @deprecated since 2.6.10 (replaced by org.nuiton.util.config.ApplicationConfigProvider
* in nuiton-config module), will be removed in version 2.7.1.
*/
@Deprecated
public interface ApplicationConfigProvider {
/**
* Returns the name of the provided application config.
*
* This should be the name of the library or application which offers
* the configuration.
*
* @return the name of the provided application config
*/
String getName();
/**
* Returns the localized description of the configuration.
*
* @param locale locale used to render description
* @return the localized description of the configuration
*/
String getDescription(Locale locale);
/**
* Returns all options offered by the configuration.
*
* @return all options offered by the configuration
* @see ApplicationConfig.OptionDef
*/
ApplicationConfig.OptionDef[] getOptions();
/**
* Returns all actions offered by the configuration.
*
* @return all actions offered by the configuration.
* @see ApplicationConfig.ActionDef
*/
ApplicationConfig.ActionDef[] getActions();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy