public class ResourceBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceBuilder.ConstructorParameterBuilder |
static class |
ResourceBuilder.FieldParameterBuilder |
static class |
ResourceBuilder.LocatorMethodParameterBuilder<T extends ResourceBuilder.LocatorMethodParameterBuilder> |
static class |
ResourceBuilder.ParameterBuilder<T extends ResourceBuilder.ParameterBuilder> |
static class |
ResourceBuilder.ResourceClassBuilder |
static class |
ResourceBuilder.ResourceConstructorBuilder |
static class |
ResourceBuilder.ResourceLocatorBuilder<T extends ResourceBuilder.ResourceLocatorBuilder> |
static class |
ResourceBuilder.ResourceMethodBuilder |
static class |
ResourceBuilder.ResourceMethodParameterBuilder |
static class |
ResourceBuilder.SetterParameterBuilder |
Constructor and Description |
---|
ResourceBuilder() |
Modifier and Type | Method and Description |
---|---|
static ResourceConstructor |
constructor(Class<?> annotatedResourceClass)
Picks a constructor from an annotated resource class based on spec rules
|
static ResourceBuilder.ResourceClassBuilder |
locator(Class<?> root) |
static ResourceClass |
locatorFromAnnotations(Class<?> clazz) |
protected static void |
processDeclaredFields(ResourceBuilder.ResourceClassBuilder resourceClassBuilder,
Class<?> root) |
protected static void |
processDeclaredSetters(ResourceBuilder.ResourceClassBuilder resourceClassBuilder,
Class<?> root,
Set<Long> visitedHashes) |
protected static void |
processFields(ResourceBuilder.ResourceClassBuilder resourceClassBuilder,
Class<?> root) |
protected static void |
processMethod(boolean isLocator,
ResourceBuilder.ResourceClassBuilder resourceClassBuilder,
Class<?> root,
Method implementation) |
protected static void |
processSetters(ResourceBuilder.ResourceClassBuilder resourceClassBuilder,
Class<?> root) |
static ResourceBuilder.ResourceClassBuilder |
rootResource(Class<?> root) |
static ResourceBuilder.ResourceClassBuilder |
rootResource(Class<?> root,
String path) |
static ResourceClass |
rootResourceFromAnnotations(Class<?> clazz)
Build metadata from annotations on classes and methods
|
public static ResourceBuilder.ResourceClassBuilder rootResource(Class<?> root)
public static ResourceBuilder.ResourceClassBuilder rootResource(Class<?> root, String path)
public static ResourceBuilder.ResourceClassBuilder locator(Class<?> root)
public static ResourceConstructor constructor(Class<?> annotatedResourceClass)
annotatedResourceClass
- public static ResourceClass rootResourceFromAnnotations(Class<?> clazz)
public static ResourceClass locatorFromAnnotations(Class<?> clazz)
protected static void processFields(ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root)
protected static void processSetters(ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root)
protected static void processDeclaredFields(ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root)
protected static void processDeclaredSetters(ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root, Set<Long> visitedHashes)
protected static void processMethod(boolean isLocator, ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root, Method implementation)
Copyright © 2014. All Rights Reserved.