org.apache.wink.common
Class WinkApplication

java.lang.Object
  extended by javax.ws.rs.core.Application
      extended by 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.


Field Summary
static double DEFAULT_PRIORITY
           
 
Constructor Summary
WinkApplication()
           
 
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
 

Field Detail

DEFAULT_PRIORITY

public static final double DEFAULT_PRIORITY
See Also:
Constant Field Values
Constructor Detail

WinkApplication

public WinkApplication()
Method Detail

getClasses

public java.util.Set<java.lang.Class<?>> getClasses()
Specified by:
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 The Apache Software Foundation. All Rights Reserved.