Getting this error in restlet:
ForwardUIApplication ; Exception while instantiating the target server resource.
java.lang.InstantiationException: me.unroll.forwardui.server.ForwardUIServer$UnsubscribeForwardUIResource
And I know exactly why. It's because my constructor looks like this:
public UnsubscribeForwardUIResource(MySQLConnectionPool connectionPool) {
And Restlet accesses the resource like so:
router.attach(Config.unsubscribeUriPattern(), UnsubscribeForwardUIResource.class);
Problem is I actually need that ctor argument. How can I make it accessible? (Note I'm not using any IOC framework, just lots of ctor arguments but this is in fact an IOC pattern).