org.glassfish.jersey.examples.reload
Class App

java.lang.Object
  extended by org.glassfish.jersey.examples.reload.App

public class App
extends java.lang.Object

Reload example application. A container listener gets registered with the application. Upon application startup notification, the listener schedules a new timer task to check a text file called resources every 2 seconds. When the text file change is detected, the application gets reloaded with a new resource configuration including all resource classes listed in that file.

Author:
Jakub Podlesak (jakub.podlesak at oracle.com)

Field Summary
static java.lang.String CONFIG_FILENAME
           
static long REFRESH_PERIOD_MS
           
static java.lang.String ROOT_PATH
           
 
Constructor Summary
App()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_PATH

public static final java.lang.String ROOT_PATH
See Also:
Constant Field Values

CONFIG_FILENAME

public static final java.lang.String CONFIG_FILENAME
See Also:
Constant Field Values

REFRESH_PERIOD_MS

public static final long REFRESH_PERIOD_MS
See Also:
Constant Field Values
Constructor Detail

App

public App()
Method Detail

main

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


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.