com.bankframe.examples.resource
Class BankFrameMCAResourceExample

java.lang.Object
  extended bycom.bankframe.examples.CommandLineExample
      extended bycom.bankframe.examples.resource.BankFrameMCAResourceExample

public class BankFrameMCAResourceExample
extends CommandLineExample

This class illustrates dynamic configuration working It carries out the following steps:

  1. Backup the current BankframeResource.properties
  2. Replace the current BankframeResource.properties with one that contains a key named dynamicConfiguration.testValue whose value is: Hello
  3. Call BankFrameMCAResource.getProperty() method to obtain the value of this setting and display it
  4. Replace the current BankframeResource.properties with one that contains a key named dynamicConfiguration.testValue whose value is: World
  5. Sleep for the interval defined by the resource.cache.refreshInterval setting so that the change to the file is detected
  6. Call BankFrameMCAResource.getProperty() method to obtain the value of this setting and display it


Field Summary
static java.lang.String TEST_KEY
           
 
Fields inherited from class com.bankframe.examples.CommandLineExample
REFRESH_KEY
 
Method Summary
static void main(java.lang.String[] args)
          Entry point
 
Methods inherited from class com.bankframe.examples.CommandLineExample
runExample
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_KEY

public static final java.lang.String TEST_KEY
See Also:
Constant Field Values
Method Detail

main

public static void main(java.lang.String[] args)
Entry point



Copyright © 2005, 2007, Oracle. All rights reserved.