return applyProcessors(builder.buildClass());
/** * Picks a constructor from an annotated resource class based on spec rules. * * @param annotatedResourceClass annotated resource class * @return {@link ResourceConstructor} */ public ResourceConstructor getConstructor(Class<?> annotatedResourceClass) { Constructor constructor = PickConstructor.pickPerRequestConstructor(annotatedResourceClass); if (constructor == null) { throw new RuntimeException(Messages.MESSAGES.couldNotFindConstructor(annotatedResourceClass.getName())); } ResourceConstructorBuilder builder = buildRootResource(annotatedResourceClass).constructor(constructor); if (constructor.getParameterTypes() != null) { for (int i = 0; i < constructor.getParameterTypes().length; i++) builder.param(i).fromAnnotations(); } ResourceClass resourceClass = applyProcessors(builder.buildConstructor().buildClass()); return resourceClass.getConstructor(); }
return applyProcessors(builder.buildClass());
/** * Picks a constructor from an annotated resource class based on spec rules. * * @param annotatedResourceClass annotated resource class * @return {@link ResourceConstructor} */ public ResourceConstructor getConstructor(Class<?> annotatedResourceClass) { Constructor constructor = PickConstructor.pickPerRequestConstructor(annotatedResourceClass); if (constructor == null) { throw new RuntimeException(Messages.MESSAGES.couldNotFindConstructor(annotatedResourceClass.getName())); } ResourceConstructorBuilder builder = buildRootResource(annotatedResourceClass).constructor(constructor); if (constructor.getParameterTypes() != null) { for (int i = 0; i < constructor.getParameterTypes().length; i++) builder.param(i).fromAnnotations(); } ResourceClass resourceClass = applyProcessors(builder.buildConstructor().buildClass()); return resourceClass.getConstructor(); }