|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.api.core.config.BootPropertiesProvider
public final class BootPropertiesProvider
Helper to determine the JNDI name of the configuration to select from the boot.properties
.
The boot properties configuration is a concept of the configuration library. Unfortunately this configuration is also used to configure parts in the core library. Therefore we have to peek into this configuration from here.
BootProperties
.
Field Summary | |
---|---|
static String |
CONFIGURATION_NAME_KEY The key to use for looking up the configuration name within the JNDI configuration extension in the boot.properties file. |
Method Summary | |
---|---|
static BootPropertiesProvider |
createFromClasspath() Factory method that runs the lookup process of boot.properties in the classpath. |
static BootPropertiesProvider |
createFromName(String configurationName) Creates an instance with the given JNDI name property. |
String |
getConfigurationName() Returns the name stored in the boot. |
static BootPropertiesProvider |
shareFromClasspath() Default construction that runs the lookup process of boot.properties in the classpath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFIGURATION_NAME_KEY
boot.properties
file.
The value of this constant is "smartics.properties.bootConfigurationName".
"smartics.properties.bootConfigurationName"
Method Detail |
---|
public static BootPropertiesProvider shareFromClasspath() throws IOException
boot.properties
in the classpath.
If the boot properties have already been set, the value is not read again. And the cached value is returned.
IOException
- on any problem loading the configuration name.
public static BootPropertiesProvider createFromName(String configurationName)
configurationName
- the name to set.
public static BootPropertiesProvider createFromClasspath() throws IOException
boot.properties
in the classpath. on each call, the properties are read from the classpath.
IOException
- on any problem loading the configuration name.
public String getConfigurationName()
boot. properties
to lookup the smartics extension configuration.
boot.properties
to lookup the extension configuration.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |