org.apache.wink.spring
Class Registrar

java.lang.Object
  extended by javax.ws.rs.core.Application
      extended by org.apache.wink.common.WinkApplication
          extended by org.apache.wink.spring.Registrar

public class Registrar
extends WinkApplication


Field Summary
 
Fields inherited from class org.apache.wink.common.WinkApplication
DEFAULT_PRIORITY
 
Constructor Summary
Registrar()
           
 
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.
 void register(org.apache.wink.server.internal.registry.ResourceRegistry resourceRegistry, org.apache.wink.common.internal.registry.ProvidersRegistry providersRegistry)
           
 void setClasses(java.util.Set<java.lang.Class<?>> classes)
           
 void setInstances(java.util.Set<java.lang.Object> instances)
           
 void setPriority(double 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
 

Constructor Detail

Registrar

public Registrar()
Method Detail

getClasses

public java.util.Set<java.lang.Class<?>> getClasses()
Overrides:
getClasses in class WinkApplication

setClasses

public void setClasses(java.util.Set<java.lang.Class<?>> classes)

setPriority

public void setPriority(double priority)

getPriority

public double getPriority()
Description copied from class: WinkApplication
Returns the Application priority.

Overrides:
getPriority in class WinkApplication
Returns:
priority

register

public void register(org.apache.wink.server.internal.registry.ResourceRegistry resourceRegistry,
                     org.apache.wink.common.internal.registry.ProvidersRegistry providersRegistry)

setInstances

public void setInstances(java.util.Set<java.lang.Object> instances)

getInstances

public java.util.Set<java.lang.Object> getInstances()
Description copied from class: WinkApplication
Returns instances of resources or providers. The implementation should ignore and warn about the classes returned by getClasses() or by getSingletons() methods.

Overrides:
getInstances in class WinkApplication
Returns:
a set of instances of resources or providers.


Copyright © 2009 The Apache Software Foundation. All Rights Reserved.