public void collectResourceMethodsUntilRoot(List<Method> methods){ if(isRoot()) return; methods.add(invoker.getMethod()); parent.collectResourceMethodsUntilRoot(methods); }
Method method = locator.getMethod(); Class<?> locatorType = method.getReturnType(); Class<?>[] locatorResourceTypes = GetRestful.getSubResourceClasses(locatorType);
public ServiceRegistry(final ServiceRegistry parent, final ResourceMethodRegistry registry, final ResteasyProviderFactory providerFactory, final ResourceLocatorInvoker invoker) throws Exception { this.parent = parent; this.registry = registry; this.providerFactory = providerFactory; this.invoker = invoker; if(invoker != null){ Method method = invoker.getMethod(); ResourceLocator resourceLocator = MethodMetaData.getResourceLocator(invoker); String methodPathVal = resourceLocator.getPath(); String classPathVal = resourceLocator.getResourceClass().getPath(); this.uri = MethodMetaData.appendURIFragments(parent, classPathVal, methodPathVal); if(parent.isRoot()) this.functionPrefix = method.getDeclaringClass().getSimpleName() + "." + method.getName(); else this.functionPrefix = parent.getFunctionPrefix() + "." + method.getName(); } scanRegistry(); }
public void collectResourceMethodsUntilRoot(List<Method> methods){ if(isRoot()) return; methods.add(invoker.getMethod()); parent.collectResourceMethodsUntilRoot(methods); }
Method method = locator.getMethod(); Class<?> locatorType = method.getReturnType(); Class<?>[] locatorResourceTypes = GetRestful.getSubResourceClasses(locatorType);
public ServiceRegistry(ServiceRegistry parent, ResourceMethodRegistry registry, ResteasyProviderFactory providerFactory, ResourceLocatorInvoker invoker) throws Exception { this.parent = parent; this.registry = registry; this.providerFactory = providerFactory; this.invoker = invoker; if(invoker != null){ Method method = invoker.getMethod(); ResourceLocator resourceLocator = MethodMetaData.getResourceLocator(invoker); String methodPathVal = resourceLocator.getPath(); String classPathVal = resourceLocator.getResourceClass().getPath(); this.uri = MethodMetaData.appendURIFragments(parent, classPathVal, methodPathVal); if(parent.isRoot()) this.functionPrefix = method.getDeclaringClass().getSimpleName() + "." + method.getName(); else this.functionPrefix = parent.getFunctionPrefix() + "." + method.getName(); } scanRegistry(); }