com.bankframe.examples.resource
Class BankFrameMCAResourceExample
java.lang.Object
com.bankframe.examples.CommandLineExample
com.bankframe.examples.resource.BankFrameMCAResourceExample
public class BankFrameMCAResourceExample
- extends CommandLineExample
This class illustrates dynamic configuration working
It carries out the following steps:
- Backup the current BankframeResource.properties
- Replace the current BankframeResource.properties with one that contains a key named
dynamicConfiguration.testValue
whose value is: Hello
- Call BankFrameMCAResource.getProperty() method to obtain the value of this setting and display it
- Replace the current BankframeResource.properties with one that contains a key named
dynamicConfiguration.testValue
whose value is: World
- Sleep for the interval defined by the
resource.cache.refreshInterval
setting so that the change to the file is detected
- Call BankFrameMCAResource.getProperty() method to obtain the value of this setting and display it
Method Summary |
static void |
main(String[] args)
Entry point |
TEST_KEY
public static final String TEST_KEY
- See Also:
- Constant Field Values
main
public static void main(String[] args)
- Entry point
Copyright © 2005, 2007, Oracle. All rights reserved.