Class ResourceBuilder
java.lang.Object
org.jboss.resteasy.spi.metadata.ResourceBuilder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
ResourceBuilder.LocatorMethodParameterBuilder<T extends ResourceBuilder.LocatorMethodParameterBuilder<T>>
static class
static class
static class
static class
static class
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ResourceBuilder.ResourceClassBuilder
buildLocator
(Class<?> root) buildRootResource
(Class<?> root) protected ResourceBuilder.ResourceClassBuilder
buildRootResource
(Class<?> root, String path) static ResourceConstructor
constructor
(Class<?> annotatedResourceClass) Deprecated.protected ResourceBuilder.ResourceClassBuilder
createResourceClassBuilder
(Class<?> clazz) static Method
findAnnotatedMethod
(Class<?> root, Method implementation) Deprecated.getAnnotatedMethod
(Class<?> root, Method implementation) Find the annotated resource method or sub-resource method / sub-resource locator in the class hierarchy.getConstructor
(Class<?> annotatedResourceClass) Picks a constructor from an annotated resource class based on spec rules.Class
<? extends Annotation> getLocatorFromAnnotations
(Class<?> clazz) getRootResourceFromAnnotations
(Class<?> clazz) Build metadata from annotations on classes and methods.Deprecated.static ResourceClass
locatorFromAnnotations
(Class<?> clazz) Deprecated.protected void
processDeclaredFields
(ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root) protected void
processDeclaredSetters
(ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root, Set<Long> visitedHashes) protected void
processFields
(ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root) protected void
processMethod
(boolean isLocator, ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root, Method implementation) protected void
processSetters
(ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root) void
registerResourceClassProcessor
(ResourceClassProcessor processor, int priority) Register a newResourceClassProcessor
which will be used to post-process allResourceClass
instances created from the builder.rootResource
(Class<?> root) Deprecated.rootResource
(Class<?> root, String path) Deprecated.static ResourceClass
rootResourceFromAnnotations
(Class<?> clazz) Deprecated.
-
Constructor Details
-
ResourceBuilder
public ResourceBuilder()
-
-
Method Details
-
registerResourceClassProcessor
Register a newResourceClassProcessor
which will be used to post-process allResourceClass
instances created from the builder.- Parameters:
processor
- resource class processorpriority
- processor priority
-
rootResource
Deprecated. -
buildRootResource
-
rootResource
@Deprecated public static ResourceBuilder.ResourceClassBuilder rootResource(Class<?> root, String path) Deprecated. -
buildRootResource
-
locator
Deprecated. -
buildLocator
-
constructor
Deprecated. -
getCorrespondingRootAnnotation
-
getConstructor
Picks a constructor from an annotated resource class based on spec rules.- Parameters:
annotatedResourceClass
- annotated resource class- Returns:
ResourceConstructor
-
rootResourceFromAnnotations
Deprecated. -
getRootResourceFromAnnotations
Build metadata from annotations on classes and methods.- Parameters:
clazz
- class- Returns:
- resource class
-
locatorFromAnnotations
Deprecated. -
getLocatorFromAnnotations
-
createResourceClassBuilder
-
findAnnotatedMethod
Deprecated. -
getAnnotatedMethod
Find the annotated resource method or sub-resource method / sub-resource locator in the class hierarchy.- Parameters:
root
- The root resource class.implementation
- The resource method or sub-resource method / sub-resource locator implementation- Returns:
- The annotated resource method or sub-resource method / sub-resource locator.
-
processFields
protected void processFields(ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root) -
processSetters
protected void processSetters(ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root) -
processDeclaredFields
protected void processDeclaredFields(ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root) -
processDeclaredSetters
protected void processDeclaredSetters(ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root, Set<Long> visitedHashes) -
processMethod
protected void processMethod(boolean isLocator, ResourceBuilder.ResourceClassBuilder resourceClassBuilder, Class<?> root, Method implementation)
-