org.glassfish.jersey.examples.reload
Class App
java.lang.Object
org.glassfish.jersey.examples.reload.App
public class App
- extends 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)
|
Constructor Summary |
App()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROOT_PATH
public static final String ROOT_PATH
- See Also:
- Constant Field Values
CONFIG_FILENAME
public static final String CONFIG_FILENAME
- See Also:
- Constant Field Values
REFRESH_PERIOD_MS
public static final long REFRESH_PERIOD_MS
- See Also:
- Constant Field Values
App
public App()
main
public static void main(String[] args)
Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.