I don't think so you can do mapping from Dispatcher Flush Agent.
But what you can do is create an sling Event Listener which will trigger Dispatcher Flush programatically for targeted resources as well.
HttpClient client = new HttpClient();
PostMethod post = new PostMethod(agent.getConfiguration().getTransportURI());
post.setRequestHeader("CQ-Action", "DELETE");
post.setRequestHeader("CQ-Handle", "/");
post.setRequestHeader("Content-Length", "0");
post.setRequestHeader("Content-Type", "application/octet-stream");
client.executeMethod(post);
more info.
Invalidating Cached Pages From AEM
Arun Patidar

