org.cruxframework.crux.core.server.rest.core.registry
Class ResourceRegistry
java.lang.Object
org.cruxframework.crux.core.server.rest.core.registry.ResourceRegistry
public class ResourceRegistry
- extends Object
- Author:
- Thiago da Rosa de Bustamante
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
size
protected int size
rootSegment
protected RootSegment rootSegment
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 © 2014. All rights reserved.