This section will try to sort out the best way to implement programmatic endpoint configuration. The approach taken is to make as few changes as possible to RestEasy, which is means that when changes were required whole methods have been copied and those new methods changed were possible.
The following branch contains the code discussed in this document: programmatic-config
Lets starting with a very basic POJO like this:
public class Pojo
{
public String doit()