Package org.analogweb.core
Class DefaultApplicationProperties
- java.lang.Object
-
- org.analogweb.core.DefaultApplicationProperties
-
- All Implemented Interfaces:
ApplicationProperties
public class DefaultApplicationProperties extends Object implements ApplicationProperties
Default implementation ofApplicationProperties
- Author:
- snowgooseyk
-
-
Field Summary
-
Fields inherited from interface org.analogweb.ApplicationProperties
LOCALE, PACKAGES, TEMP_DIR
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultApplicationProperties(Map<String,Object> properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultApplicationProperties
defaultProperties()
Collection<String>
getComponentPackageNames()
Locale
getDefaultClientLocale()
Map<String,Object>
getProperties()
Object
getProperty(String key)
String
getStringProperty(String key)
File
getTempDir()
static DefaultApplicationProperties
properties(String packageNames)
static DefaultApplicationProperties
properties(String[] options)
static DefaultApplicationProperties
properties(String packageNames, String tmpDirectoryPath, String defaultClientLocale)
static DefaultApplicationProperties
properties(Map<String,Object> properties)
-
-
-
Method Detail
-
defaultProperties
public static DefaultApplicationProperties defaultProperties()
-
properties
public static DefaultApplicationProperties properties(String packageNames)
-
properties
public static DefaultApplicationProperties properties(String packageNames, String tmpDirectoryPath, String defaultClientLocale)
-
properties
public static DefaultApplicationProperties properties(String[] options)
-
properties
public static DefaultApplicationProperties properties(Map<String,Object> properties)
-
getTempDir
public File getTempDir()
- Specified by:
getTempDir
in interfaceApplicationProperties
-
getComponentPackageNames
public Collection<String> getComponentPackageNames()
- Specified by:
getComponentPackageNames
in interfaceApplicationProperties
-
getDefaultClientLocale
public Locale getDefaultClientLocale()
- Specified by:
getDefaultClientLocale
in interfaceApplicationProperties
-
getStringProperty
public String getStringProperty(String key)
- Specified by:
getStringProperty
in interfaceApplicationProperties
-
getProperty
public Object getProperty(String key)
- Specified by:
getProperty
in interfaceApplicationProperties
-
getProperties
public Map<String,Object> getProperties()
- Specified by:
getProperties
in interfaceApplicationProperties
-
-