public class ApplicationInitializer extends BaseConfig
| Modifier and Type | Field and Description |
|---|---|
protected static String |
contextKey |
protected static String |
hostKey |
protected static String |
portKey |
static String |
QUALIFIER |
protected static String |
wildcardKey |
| Constructor and Description |
|---|
ApplicationInitializer(File propsFile) |
| Modifier and Type | Method and Description |
|---|---|
Application |
getDuraboss() |
Application |
getDuradmin() |
Application |
getDurastore() |
protected String |
getQualifier()
This method provides the qualifier used to distinquish this config
object in a properties file.
|
RestHttpHelper.HttpResponse |
initialize()
This method initializes durastore, duraboss, and duradmin based
on the loaded configuration.
|
void |
load(Map<String,String> props)
This method sets the configuration of duradmin, durastore, duraboss,
and application security from the provided props.
|
protected void |
loadProperty(String key,
String value)
This method handles loading the given key/value into its proper,
application-specific field.
|
void |
outputXml(File dir)
This method writes the configuration files for durastore, duraboss,
duradmin and application security to the provided directory.
|
void |
setSecurityUsers()
This method sets the security users from the loaded configuration.
|
getPrefix, getSuffix, isSupported, loadDbConfigpublic static final String QUALIFIER
protected static final String hostKey
protected static final String portKey
protected static final String contextKey
protected static final String wildcardKey
public ApplicationInitializer(File propsFile) throws IOException
IOExceptionpublic void load(Map<String,String> props)
load in class BaseConfigprops - protected String getQualifier()
BaseConfiggetQualifier in class BaseConfigprotected void loadProperty(String key, String value)
BaseConfigloadProperty in class BaseConfigpublic RestHttpHelper.HttpResponse initialize()
public void setSecurityUsers()
public void outputXml(File dir)
dir - public Application getDuradmin()
public Application getDurastore()
public Application getDuraboss()
Copyright © 2009–2015 DuraSpace. All rights reserved.