public class MyApp extends Application
| Constructor and Description |
|---|
MyApp() |
| Modifier and Type | Method and Description |
|---|---|
Set<Class<?>> |
getClasses()
Get a set of root resource, provider and
feature classes. |
getProperties, getSingletonspublic Set<Class<?>> getClasses()
Applicationfeature classes.
The default life-cycle for resource class instances is per-request. The default
life-cycle for providers (registered directly or via a feature) is singleton.
Implementations should warn about and ignore classes that do not
conform to the requirements of root resource or provider/feature classes.
Implementations should warn about and ignore classes for which
Application.getSingletons() returns an instance. Implementations MUST
NOT modify the returned set.
The default implementation returns an empty set.
getClasses in class Applicationnull
is equivalent to returning an empty set.Copyright © 2015. All Rights Reserved.