|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.ws.rs.core.Application org.jboss.resteasy.test.application.MyApplication
public class MyApplication
This is for RESTEASY-381
Field Summary | |
---|---|
static int |
num_instantiations
|
protected java.util.Set<java.lang.Object> |
singletons
|
Constructor Summary | |
---|---|
MyApplication()
|
Method Summary | |
---|---|
java.util.Set<java.lang.Class<?>> |
getClasses()
Get a set of root resource and provider classes. |
java.util.Set<java.lang.Object> |
getSingletons()
Get a set of root resource and provider instances. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int num_instantiations
protected java.util.Set<java.lang.Object> singletons
Constructor Detail |
---|
public MyApplication()
Method Detail |
---|
public java.util.Set<java.lang.Class<?>> getClasses()
Application
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
Application.getSingletons()
returns an instance. Implementations MUST
NOT modify the returned set.
The default implementation returns an empty set.
getClasses
in class Application
public java.util.Set<java.lang.Object> getSingletons()
Application
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.
getSingletons
in class Application
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |