public class Application extends Object
The implementation-created instance of an Application subclass may be
injected into resource classes and providers using
Context
.
Constructor and Description |
---|
Application() |
Modifier and Type | Method and Description |
---|---|
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 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.
The default implementation returns an empty 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 © 2018 JBoss by Red Hat. All rights reserved.