public abstract class Application extends Object
| Constructor and Description |
|---|
Application() |
| Modifier and Type | Method and Description |
|---|---|
abstract Set<Class<?>> |
getClasses()
Get a set of root resource and provider classes.
|
Set<Object> |
getSingletons()
Get a set of root resource and provider instances.
|
public abstract Set<Class<?>> getClasses()
Implementations should warn about and ignore classes that do not
conform to the requirements of root resource or provider classes.
Implementations should warn about and ignore classes for which
getSingletons() returns an instance. Implementations MUST
NOT modify the returned set.
public Set<Object> getSingletons()
Context) by the runtime prior to use.
Implementations should warn about and ignore classes that do not conform to the requirements of root resource or provider classes. Implementations should flag an error if the returned set includes more than one instance of the same class. Implementations MUST NOT modify the returned set.
The default implementation returns an empty set.
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.