Package org.commonjava.indy.conf
Class UIConfiguration
- java.lang.Object
-
- org.commonjava.indy.conf.UIConfiguration
-
- All Implemented Interfaces:
IndyConfigInfo
@ApplicationScoped public class UIConfiguration extends Object implements IndyConfigInfo
Configuration class that tells Indy where its UI files are. These are static resources that are served up via servlet or similar, and which are designed to be the default UI for Indy (talking to its REST resources).
-
-
Field Summary
Fields Modifier and Type Field Description static FileDEFAULT_DIR-
Fields inherited from interface org.commonjava.indy.conf.IndyConfigInfo
APPEND_DEFAULTS_TO_MAIN_CONF, CONF_INCLUDES_DIR
-
-
Constructor Summary
Constructors Constructor Description UIConfiguration()UIConfiguration(File uiDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetDefaultConfig()The actual content which should be added to the default configuration file in case no configuration is provided, to allow modification of defaults in future executions.StringgetDefaultConfigFileName()The name of the file to be written in case no configuration is provided, to allow modification of defaults in future executions.BooleangetEnabled()FilegetUIDir()voidsetEnabled(Boolean enabled)voidsetUIDir(File uiDir)
-
-
-
Field Detail
-
DEFAULT_DIR
public static final File DEFAULT_DIR
-
-
Constructor Detail
-
UIConfiguration
public UIConfiguration()
-
UIConfiguration
public UIConfiguration(File uiDir)
-
-
Method Detail
-
getDefaultConfigFileName
public String getDefaultConfigFileName()
Description copied from interface:IndyConfigInfoThe name of the file to be written in case no configuration is provided, to allow modification of defaults in future executions.- Specified by:
getDefaultConfigFileNamein interfaceIndyConfigInfo- Returns:
- a filename, of the form *.conf (unless it's 'main.conf', in which case it'll be appended to the main config file), which will be written to the etc/indy/conf.d directory.
-
getDefaultConfig
public InputStream getDefaultConfig()
Description copied from interface:IndyConfigInfoThe actual content which should be added to the default configuration file in case no configuration is provided, to allow modification of defaults in future executions.- Specified by:
getDefaultConfigin interfaceIndyConfigInfo- Returns:
- The content, usually as a result of loading Thread.currentThread().getContextClassLoader().getResourceAsStream("foo")
-
getUIDir
public File getUIDir()
-
setUIDir
public void setUIDir(File uiDir)
-
getEnabled
public Boolean getEnabled()
-
setEnabled
public void setEnabled(Boolean enabled)
-
-