org.cruxframework.crux.core.server.rest.core.registry
Class ResourceRegistry

java.lang.Object
  extended by org.cruxframework.crux.core.server.rest.core.registry.ResourceRegistry

public class ResourceRegistry
extends Object

Author:
Thiago da Rosa de Bustamante

Field Summary
protected  RootSegment rootSegment
           
protected  int size
           
 
Method Summary
protected  void addResource(Class<?>[] classes, String base)
           
protected  void addResource(Class<?> clazz, String base)
           
static ResourceRegistry getInstance()
          Singleton accessor
 ResourceMethod getResourceMethod(HttpRequest request)
          Find a resource to invoke on
 RootSegment getRoot()
           
 int getSize()
          Number of endpoints registered
static void initialize()
           
protected  org.cruxframework.crux.core.server.rest.core.registry.ResourceRegistry.RestMethodRegistrationInfo processMethod(String base, Class<?> clazz, Method method, Set<String> restMethodNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected int size

rootSegment

protected RootSegment rootSegment
Method Detail

getInstance

public static ResourceRegistry getInstance()
Singleton accessor

Returns:

getRoot

public RootSegment getRoot()

getSize

public int getSize()
Number of endpoints registered

Returns:

getResourceMethod

public ResourceMethod getResourceMethod(HttpRequest request)
Find a resource to invoke on

Returns:

addResource

protected void addResource(Class<?> clazz,
                           String base)
Parameters:
clazz -
base -

addResource

protected void addResource(Class<?>[] classes,
                           String base)
Parameters:
classes -
base -

processMethod

protected org.cruxframework.crux.core.server.rest.core.registry.ResourceRegistry.RestMethodRegistrationInfo processMethod(String base,
                                                                                                                          Class<?> clazz,
                                                                                                                          Method method,
                                                                                                                          Set<String> restMethodNames)
Parameters:
base -
clazz -
method -
restMethodNames -

initialize

public static void initialize()


Copyright © 2015. All rights reserved.