org.apache.wink.common
Class WinkApplication
java.lang.Object
javax.ws.rs.core.Application
org.apache.wink.common.WinkApplication
- Direct Known Subclasses:
- Registrar, RegistrationUtils.InnerApplication
public class WinkApplication
- extends javax.ws.rs.core.Application
Enhances javax.ws.rs.core.Application with getPriority and
getInstances methods.
Method Summary |
java.util.Set<java.lang.Class<?>> |
getClasses()
|
java.util.Set<java.lang.Object> |
getInstances()
Returns instances of resources or providers. |
double |
getPriority()
Returns the Application priority. |
Methods inherited from class javax.ws.rs.core.Application |
getSingletons |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PRIORITY
public static final double DEFAULT_PRIORITY
- See Also:
- Constant Field Values
SYSTEM_PRIORITY
public static final double SYSTEM_PRIORITY
- See Also:
- Constant Field Values
WinkApplication
public WinkApplication()
getClasses
public java.util.Set<java.lang.Class<?>> getClasses()
- Overrides:
getClasses
in class javax.ws.rs.core.Application
getPriority
public double getPriority()
- Returns the Application priority.
- Returns:
- priority
getInstances
public java.util.Set<java.lang.Object> getInstances()
- Returns instances of resources or providers. The implementation should
ignore and warn about the classes returned by getClasses() or by
getSingletons() methods.
- Returns:
- a set of instances of resources or providers.
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.