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, SYSTEM_PRIORITY
 
Constructor Summary
Registrar()
           
 
Method Summary
 Set<Class<?>> getClasses()
           
 Set<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(Set<Class<?>> classes)
           
 void setInstances(Set<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 Set<Class<?>> getClasses()
Overrides:
getClasses in class WinkApplication

setClasses

public void setClasses(Set<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(Set<Object> instances)

getInstances

public Set<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-2012 The Apache Software Foundation. All Rights Reserved.